Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: adjust anthropic (#1387)
takatost4c63cbf5b138
diff --git a/api/core/model_providers/providers/anthropic_provider.py b/api/core/model_providers/providers/anthropic_provider.pyindex eab61c60ccc..2f667aed965 100644--- a/api/core/model_providers/providers/anthropic_provider.py+++ b/api/core/model_providers/providers/anthropic_provider.py@@ -172,7 +172,7 @@ class AnthropicProvider(BaseModelProvider):def should_deduct_quota(self):if hosted_model_providers.anthropic and \- hosted_model_providers.anthropic.quota_limit and hosted_model_providers.anthropic.quota_limit > 0:+ hosted_model_providers.anthropic.quota_limit and hosted_model_providers.anthropic.quota_limit > -1:return Truereturn Falsediff --git a/api/core/model_providers/providers/azure_openai_provider.py b/api/core/model_providers/providers/azure_openai_provider.pyindex a34b463286a..242d9109cf2 100644--- a/api/core/model_providers/providers/azure_openai_provider.py+++ b/api/core/model_providers/providers/azure_openai_provider.py@@ -329,7 +329,7 @@ class AzureOpenAIProvider(BaseModelProvider):def should_deduct_quota(self):if hosted_model_providers.azure_openai \- and hosted_model_providers.azure_openai.quota_limit and hosted_model_providers.azure_openai.quota_limit > 0:+ and hosted_model_providers.azure_openai.quota_limit and hosted_model_providers.azure_openai.quota_limit > -1:return Truereturn Falsediff --git a/api/core/model_providers/providers/hosted.py b/api/core/model_providers/providers/hosted.pyindex d2dc39b73f1..fd90a0a360c 100644--- a/api/core/model_providers/providers/hosted.py+++ b/api/core/model_providers/providers/hosted.py@@ -11,7 +11,7 @@ class HostedOpenAI(BaseModel):api_organization: str = Noneapi_key: strquota_limit: int = 0- """Quota limit for the openai hosted model. 0 means unlimited."""+ """Quota limit for the openai hosted model. -1 means unlimited."""paid_enabled: bool = Falsepaid_stripe_price_id: str = Nonepaid_increase_quota: int = 1@@ -21,14 +21,14 @@ class HostedAzureOpenAI(BaseModel):api_base: strapi_key: strquota_limit: int = 0- """Quota limit for the azure openai hosted model. 0 means unlimited."""+ """Quota limit for the azure openai hosted model. -1 means unlimited."""class HostedAnthropic(BaseModel):api_base: str = Noneapi_key: strquota_limit: int = 0- """Quota limit for the anthropic hosted model. 0 means unlimited."""+ """Quota limit for the anthropic hosted model. -1 means unlimited."""paid_enabled: bool = Falsepaid_stripe_price_id: str = Nonepaid_increase_quota: int = 1000000diff --git a/api/core/model_providers/providers/openai_provider.py b/api/core/model_providers/providers/openai_provider.pyindex d72ad3c03bc..e2e17eab457 100644--- a/api/core/model_providers/providers/openai_provider.py+++ b/api/core/model_providers/providers/openai_provider.py@@ -250,7 +250,7 @@ class OpenAIProvider(BaseModelProvider):def should_deduct_quota(self):if hosted_model_providers.openai \- and hosted_model_providers.openai.quota_limit and hosted_model_providers.openai.quota_limit > 0:+ and hosted_model_providers.openai.quota_limit and hosted_model_providers.openai.quota_limit > -1:return Truereturn Falsediff --git a/api/core/model_providers/rules/anthropic.json b/api/core/model_providers/rules/anthropic.jsonindex c0aac8617c0..e617842b94d 100644--- a/api/core/model_providers/rules/anthropic.json+++ b/api/core/model_providers/rules/anthropic.json@@ -9,7 +9,7 @@"trial"],"quota_unit": "tokens",- "quota_limit": 600000+ "quota_limit": 0},"model_flexibility": "fixed","price_config": {