mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Update llm.py
rm 'sk-' verification
This commit is contained in:
parent
9940022096
commit
dfe9168509
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ from metagpt.provider.human_provider import HumanProvider
|
|||
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.startswith("sk-"):
|
||||
if CONFIG.openai_api_key:
|
||||
llm = OpenAIGPTAPI()
|
||||
elif CONFIG.claude_api_key:
|
||||
llm = Claude()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue