🐫 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
minor: update broken links for api keys/docs (#3727)
JINO ROHIT84332ff58fb0
diff --git a/camel/models/internlm_model.py b/camel/models/internlm_model.pyindex 926bfa50d..e5cbd36c3 100644--- a/camel/models/internlm_model.py+++ b/camel/models/internlm_model.py@@ -80,7 +80,7 @@ class InternLMModel(OpenAICompatibleModel):api_key = api_key or os.environ.get("INTERNLM_API_KEY")url = url or os.environ.get("INTERNLM_API_BASE_URL",- "https://internlm-chat.intern-ai.org.cn/puyu/api/v1",+ "https://internlm.intern-ai.org.cn/api/tokens",)timeout = timeout or float(os.environ.get("MODEL_TIMEOUT", 180))super().__init__(diff --git a/camel/utils/commons.py b/camel/utils/commons.pyindex 8816bae11..37d96eba0 100644--- a/camel/utils/commons.py+++ b/camel/utils/commons.py@@ -311,9 +311,7 @@ def api_keys_required(key_way = "the official website"if env_var_name == 'ANTHROPIC_API_KEY':- key_way = (- "https://docs.anthropic.com/zh-CN/api/getting-started"- )+ key_way = "https://platform.claude.com/docs/en/api/overview"elif env_var_name == 'AIML_API_KEY':key_way = "https://aimlapi.com/"elif env_var_name == 'COHERE_API_KEY':@@ -331,15 +329,15 @@ def api_keys_required(elif env_var_name == 'GEMINI_API_KEY':key_way = "https://gemini.google.com/"elif env_var_name == 'INTERNLM_API_KEY':- key_way = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1"+ key_way = "https://internlm.intern-ai.org.cn/api/tokens"elif env_var_name == 'GROQ_API_KEY':- key_way = "https://api.groq.com/openai/v1"+ key_way = "https://console.groq.com/keys"elif env_var_name == 'MISTRAL_API_KEY':key_way = "https://mistral.ai/"elif env_var_name == 'MOONSHOT_API_KEY':- key_way = "https://api.moonshot.cn/v1"+ key_way = "platform.moonshot.ai/console"elif env_var_name == 'NVIDIA_API_KEY':- key_way = "https://integrate.api.nvidia.com/"+ key_way = "https://build.nvidia.com/settings/api-keys"elif env_var_name == 'OPENAI_COMPATIBILITY_API_KEY':key_way = "https://platform.openai.com/docs/overview"elif env_var_name == 'QWEN_API_KEY':@@ -347,7 +345,7 @@ def api_keys_required(elif env_var_name == 'REKA_API_KEY':key_way = "https://docs.reka.ai/quick-start"elif env_var_name == 'SAMBA_API_KEY':- key_way = "https://community.sambanova.ai/t/looking-for-api-key-and-url-for-sambanova/576"+ key_way = "cloud.sambanova.ai/apis"elif env_var_name == 'TOGETHER_API_KEY':key_way = "https://docs.together.ai/docs/quickstart"elif env_var_name == 'YI_API_KEY':@@ -357,7 +355,7 @@ def api_keys_required(elif env_var_name == 'KLAVIS_API_KEY':key_way = "https://www.klavis.ai/docs"elif env_var_name == 'XAI_API_KEY':- key_way = "https://api.x.ai/v1"+ key_way = "https://docs.x.ai/docs/overview"if missing_keys:raise ValueError(