summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-02-14 17:44:59 +0800
committerGitHub <noreply@github.com>2025-02-14 17:44:59 +0800
commitebcf99f1d7ded70823ee8144f70e93f67b25129e (patch)
tree60ddbe3b4039c40e6cb7b1dfa20825633c38c9e4 /src/client/openai.rs
parent5eebd47bc309d98bf4781b2df4532e63bf8d9c70 (diff)
downloadaichat-ebcf99f1d7ded70823ee8144f70e93f67b25129e.tar.gz
feat: abandon model field `supports_reasoning` (revert #1145) (#1173)
Diffstat (limited to 'src/client/openai.rs')
-rw-r--r--src/client/openai.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index 975afd7..6d57d42 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -301,9 +301,6 @@ pub fn openai_build_chat_completions_body(data: ChatCompletionsData, model: &Mod
if let Some(v) = model.max_tokens_param() {
body["max_tokens"] = v.into();
}
- if model.client_name().starts_with("openrouter") && model.supports_reasoning() {
- body["include_reasoning"] = true.into();
- }
if let Some(v) = temperature {
body["temperature"] = v.into();
}