mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
rm expicit serialize&deserialize interface and update unittests
This commit is contained in:
parent
d2233beff4
commit
98ee696cf0
27 changed files with 154 additions and 290 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