Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

feat: add gemini 3.1 to model enum list (#3903)

Wendong-Fan2aad79ef4b73
diff --git a/camel/types/enums.py b/camel/types/enums.py
index 0c6c4798d..44081cd70 100644
--- a/camel/types/enums.py
+++ b/camel/types/enums.py
@@ -254,6 +254,8 @@ class ModelType(UnifiedModelType, Enum):
NVIDIA_LLAMA3_3_70B_INSTRUCT = "meta/llama-3.3-70b-instruct"
# Gemini models
+ GEMINI_3_1_PRO = "gemini-3.1-pro-preview"
+ GEMINI_3_1_FLASH_LITE = "gemini-3.1-flash-lite-preview"
GEMINI_3_PRO = "gemini-3-pro-preview"
GEMINI_3_FLASH = "gemini-3-flash-preview"
GEMINI_2_5_FLASH = "gemini-2.5-flash"
@@ -891,6 +893,8 @@ class ModelType(UnifiedModelType, Enum):
bool: Whether this type of models is gemini.
"""
return self in {
+ ModelType.GEMINI_3_1_PRO,
+ ModelType.GEMINI_3_1_FLASH_LITE,
ModelType.GEMINI_3_PRO,
ModelType.GEMINI_3_FLASH,
ModelType.GEMINI_2_5_FLASH,
@@ -1638,6 +1642,8 @@ class ModelType(UnifiedModelType, Enum):
}:
return 512_000
elif self in {
+ ModelType.GEMINI_3_1_PRO,
+ ModelType.GEMINI_3_1_FLASH_LITE,
ModelType.GEMINI_3_PRO,
ModelType.GEMINI_3_FLASH,
ModelType.GEMINI_2_5_FLASH,
diff --git a/docs/key_modules/models.md b/docs/key_modules/models.md
index d356dea2e..27b084f13 100644
--- a/docs/key_modules/models.md
+++ b/docs/key_modules/models.md
@@ -41,7 +41,7 @@ CAMEL supports a wide range of models, including [OpenAI’s GPT series](https:/
| **Mistral AI** | mistral-large-latest, pixtral-12b-2409<br/>ministral-8b-latest, ministral-3b-latest<br/>open-mistral-nemo, codestral-latest<br/>open-mistral-7b, open-mixtral-8x7b<br/>open-mixtral-8x22b, open-codestral-mamba<br/>mistral-small-2506, mistral-medium-2508<br/>magistral-small-1.2, magistral-medium-1.2 |
| **Moonshot** | kimi-k2-0905-Preview, kimi-k2.5, kimi-k2-turbo-preview<br/>kimi-k2-thinking, kimi-k2-thinking-turbo<br/>moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k |
| **Anthropic** | claude-3-7-sonnet-latest<br/>claude-sonnet-4-5, claude-opus-4-5, claude-haiku-4-5<br/>claude-sonnet-4-20250514, claude-opus-4-20250514, claude-opus-4-1-20250805 |
-| **Gemini** | gemini-3-pro-preview, gemini-3-flash-preview<br/>gemini-2.5-pro, gemini-2.5-flash<br/>gemini-2.0-flash, gemini-2.0-flash-thinking-exp<br/> gemini-2.0-flash-lite|
+| **Gemini** | gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview<br/>gemini-3-pro-preview, gemini-3-flash-preview<br/>gemini-2.5-pro, gemini-2.5-flash<br/>gemini-2.0-flash, gemini-2.0-flash-thinking-exp<br/>gemini-2.0-flash-lite |
| **Lingyiwanwu** | yi-lightning, yi-large, yi-medium<br/>yi-large-turbo, yi-vision, yi-medium-200k<br/>yi-spark, yi-large-rag, yi-large-fc |
| **Qwen** | qwen3-coder-plus, qwq-32b-preview, qwq-plus, qvq-72b-preview, qwen-max, qwen-plus, qwen-turbo, qwen-long<br/>qwen-plus-latest, qwen-plus-2025-04-28, qwen-turbo-latest, qwen-turbo-2025-04-28<br/>qwen-vl-max, qwen-vl-plus, qwen-vl-72b-instruct, qwen-math-plus, qwen-math-turbo, qwen-coder-turbo<br/>qwen2.5-coder-32b-instruct, qwen2.5-72b-instruct, qwen2.5-32b-instruct, qwen2.5-14b-instruct |
| **DeepSeek** | deepseek-chat<br/>deepseek-reasoner |