|
27 | 27 | REASONING_TAG_FORMAT: dict[str, tuple[str, str]] = { |
28 | 28 | "openai": ("<thinking>", "</thinking>"), |
29 | 29 | "anthropic": ("<thinking>", "</thinking>"), |
30 | | - "qwen": ("<thinking>", "</thinking>"), |
31 | | - "qwen-oauth": ("<thinking>", "</thinking>"), |
32 | | - "deepseek": ("<think>", "</think>"), # DeepSeek uses <think> natively |
33 | | - "minimax": ("<think>", "</think>"), |
34 | | - "gemini": ("<thinking>", "</thinking>"), |
35 | | - "gemini-oauth-plan": ("<thinking>", "</thinking>"), |
36 | | - "gemini-oauth-free": ("<thinking>", "</thinking>"), |
37 | | - "gemini-cli-acp": ("<thinking>", "</thinking>"), |
38 | | - "gemini-cli-cloud-project": ("<thinking>", "</thinking>"), |
39 | | - # Default for others |
40 | | - "_default": ("<reasoning>", "</reasoning>"), |
41 | | -} |
| 30 | + "qwen": ("<thinking>", "</thinking>"), |
| 31 | + "qwen-oauth": ("<thinking>", "</thinking>"), |
| 32 | + "deepseek": ("<think>", "</think>"), # DeepSeek uses <think> natively |
| 33 | + "minimax": ("<think>", "</think>"), |
| 34 | + "gemini": ("<thinking>", "</thinking>"), |
| 35 | + "gemini-oauth-plan": ("<thinking>", "</thinking>"), |
| 36 | + "gemini-oauth-free": ("<thinking>", "</thinking>"), |
| 37 | + "gemini-cli-acp": ("<thinking>", "</thinking>"), |
| 38 | + "gemini-cli-cloud-project": ("<thinking>", "</thinking>"), |
| 39 | + # Default for others |
| 40 | + "_default": ("<reasoning>", "</reasoning>"), |
| 41 | +} |
42 | 42 |
|
43 | 43 | # Reasoning phase parameters - maximize reasoning quality |
44 | 44 | REASONING_PHASE_PARAMS: dict[str, dict[str, Any]] = { |
|
63 | 63 | "_default": { |
64 | 64 | # Generic reasoning parameters |
65 | 65 | "temperature": 0.7, # Balanced for reasoning |
| 66 | + "reasoning_effort": "high", # Ensure strong reasoning on unknown backends |
66 | 67 | }, |
67 | 68 | } |
68 | 69 |
|
|
87 | 88 | "_default": { |
88 | 89 | # Generic execution parameters |
89 | 90 | "temperature": 0.5, # Lower for consistency |
| 91 | + "reasoning_effort": "low", # Minimize reasoning for unknown backends |
90 | 92 | }, |
91 | 93 | } |
92 | 94 |
|
|
0 commit comments