mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
fix small problem
This commit is contained in:
parent
2c81cc3e0f
commit
6ef3b213c3
4 changed files with 15 additions and 11 deletions
|
|
@ -14,7 +14,7 @@ from metagpt.provider.zhipuai_api import ZhiPuAIGPTAPI
|
|||
from metagpt.provider.spark_api import SparkAPI
|
||||
|
||||
|
||||
def LLM():
|
||||
def LLM() -> "BaseGPTAPI":
|
||||
""" initialize different LLM instance according to the key field existence"""
|
||||
# TODO a little trick, can use registry to initialize LLM instance further
|
||||
if CONFIG.openai_api_key and CONFIG.openai_api_key.starswith("sk-"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue