Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(models): store Agnes preset as a single model list

Chris8c29b90ead81
diff --git a/packages/model-providers/catalog/providers.json b/packages/model-providers/catalog/providers.json
index db54b1a64f..fc08217e8f 100644
--- a/packages/model-providers/catalog/providers.json
+++ b/packages/model-providers/catalog/providers.json
@@ -2201,88 +2201,15 @@
"name": "Agnes AI",
"docsUrl": "https://wiki.agnes-ai.com/en/docs/overview",
"regionHint": "global",
- "runtimes": {
- "claude-code": {
- "baseUrl": "https://apihub.agnes-ai.com/v1",
- "modelsUrl": "https://apihub.agnes-ai.com/v1/models",
- "wireProtocol": "anthropic-messages",
- "models": [
- {
- "id": "agnes-3.0-flash",
- "name": "Agnes 3.0 Flash",
- "contextWindow": 512000,
- "supportsImageInput": true,
- "maxOutput": 65536
- },
- {
- "id": "agnes-2.5-pro",
- "name": "Agnes 2.5 Pro",
- "contextWindow": 1000000,
- "supportsImageInput": true,
- "maxOutput": 65536
- },
- {
- "id": "agnes-2.5-pro-beta",
- "name": "Agnes 2.5 Pro Beta",
- "contextWindow": 1000000,
- "supportsImageInput": true,
- "maxOutput": 65536
- },
- {
- "id": "agnes-2.5-flash",
- "name": "Agnes 2.5 Flash",
- "contextWindow": 512000,
- "supportsImageInput": true,
- "maxOutput": 65536
- }
- ]
- },
- "codex": {
- "baseUrl": "https://apihub.agnes-ai.com/v1",
- "modelsUrl": "https://apihub.agnes-ai.com/v1/models",
- "wireProtocol": "openai-responses",
- "models": [
- {
- "id": "agnes-3.0-flash",
- "name": "Agnes 3.0 Flash",
- "contextWindow": 512000,
- "supportsImageInput": true,
- "maxOutput": 65536
- },
- {
- "id": "agnes-2.5-pro",
- "name": "Agnes 2.5 Pro",
- "contextWindow": 1000000,
- "supportsImageInput": true,
- "maxOutput": 65536
- },
- {
- "id": "agnes-2.5-pro-beta",
- "name": "Agnes 2.5 Pro Beta",
- "contextWindow": 1000000,
- "supportsImageInput": true,
- "maxOutput": 65536
- },
- {
- "id": "agnes-2.5-flash",
- "name": "Agnes 2.5 Flash",
- "contextWindow": 512000,
- "supportsImageInput": true,
- "maxOutput": 65536
- }
- ]
- },
- "pi": {
- "baseUrl": "https://apihub.agnes-ai.com/v1",
- "modelsUrl": "https://apihub.agnes-ai.com/v1/models",
- "wireProtocol": "anthropic-messages",
- "models": [
- {
- "id": "agnes-3.0-flash",
- "name": "Agnes 3.0 Flash",
- "contextWindow": 512000,
- "supportsImageInput": true,
- "maxOutput": 65536,
+ "models": [
+ {
+ "id": "agnes-3.0-flash",
+ "name": "Agnes 3.0 Flash",
+ "contextWindow": 512000,
+ "supportsImageInput": true,
+ "maxOutput": 65536,
+ "engineOverrides": {
+ "pi": {
"piApi": "anthropic-messages",
"reasoning": true,
"reasoningEfforts": [
@@ -2291,13 +2218,17 @@
"high"
],
"reasoningDefaultEffort": "medium"
- },
- {
- "id": "agnes-2.5-pro",
- "name": "Agnes 2.5 Pro",
- "contextWindow": 1000000,
- "supportsImageInput": true,
- "maxOutput": 65536,
+ }
+ }
+ },
+ {
+ "id": "agnes-2.5-pro",
+ "name": "Agnes 2.5 Pro",
+ "contextWindow": 1000000,
+ "supportsImageInput": true,
+ "maxOutput": 65536,
+ "engineOverrides": {
+ "pi": {
"piApi": "anthropic-messages",
"reasoning": true,
"reasoningEfforts": [
@@ -2306,13 +2237,17 @@
"high"
],
"reasoningDefaultEffort": "medium"
- },
- {
- "id": "agnes-2.5-pro-beta",
- "name": "Agnes 2.5 Pro Beta",
- "contextWindow": 1000000,
- "supportsImageInput": true,
- "maxOutput": 65536,
+ }
+ }
+ },
+ {
+ "id": "agnes-2.5-pro-beta",
+ "name": "Agnes 2.5 Pro Beta",
+ "contextWindow": 1000000,
+ "supportsImageInput": true,
+ "maxOutput": 65536,
+ "engineOverrides": {
+ "pi": {
"piApi": "anthropic-messages",
"reasoning": true,
"reasoningEfforts": [
@@ -2321,13 +2256,17 @@
"high"
],
"reasoningDefaultEffort": "medium"
- },
- {
- "id": "agnes-2.5-flash",
- "name": "Agnes 2.5 Flash",
- "contextWindow": 512000,
- "supportsImageInput": true,
- "maxOutput": 65536,
+ }
+ }
+ },
+ {
+ "id": "agnes-2.5-flash",
+ "name": "Agnes 2.5 Flash",
+ "contextWindow": 512000,
+ "supportsImageInput": true,
+ "maxOutput": 65536,
+ "engineOverrides": {
+ "pi": {
"piApi": "anthropic-messages",
"reasoning": true,
"reasoningEfforts": [
@@ -2337,7 +2276,24 @@
],
"reasoningDefaultEffort": "medium"
}
- ]
+ }
+ }
+ ],
+ "runtimes": {
+ "claude-code": {
+ "baseUrl": "https://apihub.agnes-ai.com/v1",
+ "modelsUrl": "https://apihub.agnes-ai.com/v1/models",
+ "wireProtocol": "anthropic-messages"
+ },
+ "codex": {
+ "baseUrl": "https://apihub.agnes-ai.com/v1",
+ "modelsUrl": "https://apihub.agnes-ai.com/v1/models",
+ "wireProtocol": "openai-responses"
+ },
+ "pi": {
+ "baseUrl": "https://apihub.agnes-ai.com/v1",
+ "modelsUrl": "https://apihub.agnes-ai.com/v1/models",
+ "wireProtocol": "anthropic-messages"
}
}
}