mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 17:26:22 +02:00
Merge pull request #728 from better629/feat_simple_ser
Feat simpler serialization in one file
This commit is contained in:
commit
9a42a14c91
29 changed files with 232 additions and 316 deletions
|
|
@ -18,12 +18,12 @@ from metagpt.config2 import config
|
|||
|
||||
def make_sk_kernel():
|
||||
kernel = sk.Kernel()
|
||||
if llm := config.get_openai_llm():
|
||||
if llm := config.get_azure_llm():
|
||||
kernel.add_chat_service(
|
||||
"chat_completion",
|
||||
AzureChatCompletion(llm.model, llm.base_url, llm.api_key),
|
||||
)
|
||||
else:
|
||||
elif llm := config.get_openai_llm():
|
||||
kernel.add_chat_service(
|
||||
"chat_completion",
|
||||
OpenAIChatCompletion(llm.model, llm.api_key),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue