diff --git a/config/config.yaml b/config/config.yaml index dfcbeab25..87637f0b5 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -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" diff --git a/metagpt/llm.py b/metagpt/llm.py index e4ae81735..ad4bf6cb2 100644 --- a/metagpt/llm.py +++ b/metagpt/llm.py @@ -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