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

fix: anthropic max_tokens limitation (#3874)

Wendong-Fan746cb75868f9
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index a7722eda3..a8a341dfe 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -26,7 +26,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
- placeholder: E.g., 0.2.90a3
+ placeholder: E.g., 0.2.90a4
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index 517fbb365..ebfe41941 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -14,7 +14,7 @@
from camel.logger import disable_logging, enable_logging, set_log_level
-__version__ = '0.2.90a3'
+__version__ = '0.2.90a4'
__all__ = [
'__version__',
diff --git a/camel/models/anthropic_model.py b/camel/models/anthropic_model.py
index e235e9e3d..533add9de 100644
--- a/camel/models/anthropic_model.py
+++ b/camel/models/anthropic_model.py
@@ -720,7 +720,7 @@ class AnthropicModel(BaseModelBackend):
request_params: Dict[str, Any] = {
"model": str(self.model_type),
"messages": anthropic_messages,
- "max_tokens": self.model_config_dict.get("max_tokens", 4096),
+ "max_tokens": self.model_config_dict.get("max_tokens", None),
}
if system_message:
@@ -849,7 +849,7 @@ class AnthropicModel(BaseModelBackend):
request_params: Dict[str, Any] = {
"model": str(self.model_type),
"messages": anthropic_messages,
- "max_tokens": self.model_config_dict.get("max_tokens", 4096),
+ "max_tokens": self.model_config_dict.get("max_tokens", None),
}
if system_message:
diff --git a/docs/conf.py b/docs/conf.py
index 2482026ea..a89fa1cd3 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('..'))
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
-release = '0.2.90a3'
+release = '0.2.90a4'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/pyproject.toml b/pyproject.toml
index 5b66d4eb7..aab18551c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.90a3"
+version = "0.2.90a4"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.15"
diff --git a/uv.lock b/uv.lock
index ee6eab981..ef125373f 100644
--- a/uv.lock
+++ b/uv.lock
@@ -886,7 +886,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.90a3"
+version = "0.2.90a4"
source = { editable = "." }
dependencies = [
{ name = "astor" },