🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
fix: Resolve Open Source Model Initialization in model_factory.py (#646)
Sikai Li99a11fad19a7
diff --git a/camel/models/model_factory.py b/camel/models/model_factory.pyindex c4dcdc4ec..8f60164fe 100644--- a/camel/models/model_factory.py+++ b/camel/models/model_factory.py@@ -64,5 +64,9 @@ class ModelFactory:else:raise ValueError(f"Unknown model type `{model_type}` is input")- inst = model_class(model_type, model_config_dict, api_key)+ if model_type.is_open_source:+ inst = model_class(model_type, model_config_dict)+ else:+ inst = model_class(model_type, model_config_dict, api_key)+return inst