mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-10-24 23:23:45 +08:00
feat: merge fixbug/rfc135_merge_geekan_cli_etc_1445
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ OPENAI_API_BASE: "https://api.openai.com/v1"
|
||||
OPENAI_API_MODEL: "gpt-4-1106-preview"
|
||||
MAX_TOKENS: 4096
|
||||
RPM: 10
|
||||
LLM_TYPE: OpenAI
|
||||
#LLM_TYPE: OpenAI # Except for these three major models – OpenAI, MetaGPT LLM, and Azure – other large models can be distinguished based on the validity of the key.
|
||||
|
||||
#### if Spark
|
||||
#SPARK_APPID : "YOUR_APPID"
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ class LLMFactory:
|
||||
if constructor:
|
||||
return constructor()
|
||||
|
||||
raise ValueError(f"Unsupported LLM TYPE: {CONFIG.LLM_TYPE}")
|
||||
raise RuntimeError("You should config a LLM configuration first")
|
||||
|
||||
|
||||
# Used in metagpt
|
||||
|
||||
Reference in New Issue
Block a user