release v1.0.23 to support websearch

This commit is contained in:
jinhui.li
2025-07-21 10:46:53 +08:00
parent e362feaa82
commit 7165953b50
5 changed files with 21 additions and 19 deletions

View File

@@ -107,7 +107,8 @@ Here is a comprehensive example:
"default": "deepseek,deepseek-chat",
"background": "ollama,qwen2.5-coder:latest",
"think": "deepseek,deepseek-reasoner",
"longContext": "openrouter,google/gemini-2.5-pro-preview"
"longContext": "openrouter,google/gemini-2.5-pro-preview",
"webSearch": "gemini,gemini-2.5-flash"
}
}
```
@@ -218,6 +219,8 @@ The `Router` object defines which model to use for different scenarios:
- `background`: A model for background tasks. This can be a smaller, local model to save costs.
- `think`: A model for reasoning-heavy tasks, like Plan Mode.
- `longContext`: A model for handling long contexts (e.g., > 60K tokens).
- `webSearch`: Used for handling web search tasks and this requires the model itself to support the feature. If you're using openrouter, you need to add the `:online` suffix after the model name.
You can also switch models dynamically in Claude Code with the `/model` command:
`/model provider_name,model_name`