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

Auto-update documentation after merge [skip ci]

camel-docs-botb0b45e2941bd
diff --git a/docs/mintlify/reference/camel.models.anthropic_model.mdx b/docs/mintlify/reference/camel.models.anthropic_model.mdx
index 730d54077..bae3fed32 100644
--- a/docs/mintlify/reference/camel.models.anthropic_model.mdx
+++ b/docs/mintlify/reference/camel.models.anthropic_model.mdx
@@ -69,7 +69,7 @@ def token_counter(self):
**Returns:**
- BaseTokenCounter: The token counter following the model's
+ OpenAITokenCounter: The token counter following the model's
tokenization style.
<a id="camel.models.anthropic_model.AnthropicModel.check_model_config"></a>
diff --git a/docs/mintlify/reference/camel.utils.token_counting.mdx b/docs/mintlify/reference/camel.utils.token_counting.mdx
index f8dca88a5..ad26d1620 100644
--- a/docs/mintlify/reference/camel.utils.token_counting.mdx
+++ b/docs/mintlify/reference/camel.utils.token_counting.mdx
@@ -199,7 +199,12 @@ class AnthropicTokenCounter(BaseTokenCounter):
### __init__
```python
-def __init__(self, model: str):
+def __init__(
+ self,
+ model: str,
+ api_key: Optional[str] = None,
+ base_url: Optional[str] = None
+):
```
Constructor for the token counter for Anthropic models.
@@ -207,6 +212,8 @@ Constructor for the token counter for Anthropic models.
**Parameters:**
- **model** (str): The name of the Anthropic model being used.
+- **api_key** (Optional[str], optional): The API key for authenticating with the Anthropic service. If not provided, it will use the ANTHROPIC_API_KEY environment variable. (default: :obj:`None`)
+- **base_url** (Optional[str], optional): The URL of the Anthropic service. If not provided, it will use the default Anthropic URL. (default: :obj:`None`)
<a id="camel.utils.token_counting.AnthropicTokenCounter.count_tokens_from_messages"></a>