feat(cli-tools): update CLI tools and add new models

- Add Droid and OpenClaw tool cards to CLI tools
- Enhance ClaudeToolCard and CodexToolCard to display current base URLs
This commit is contained in:
decolua
2026-02-06 20:53:20 +07:00
parent f68ef4c933
commit a2122e3e48
41 changed files with 1123 additions and 9 deletions
@@ -102,6 +102,13 @@ export async function POST(request) {
}
}
// Normalize ANTHROPIC_BASE_URL to ensure /v1 suffix
if (env.ANTHROPIC_BASE_URL) {
env.ANTHROPIC_BASE_URL = env.ANTHROPIC_BASE_URL.endsWith("/v1")
? env.ANTHROPIC_BASE_URL
: `${env.ANTHROPIC_BASE_URL}/v1`;
}
// Merge new env with existing settings
const newSettings = {
...currentSettings,