mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-08-14 00:47:51 +00:00
bug fixes
This commit is contained in:
@@ -472,7 +472,8 @@ impl LlmDriver for AnthropicDriver {
|
||||
}) = blocks.get(block_idx)
|
||||
{
|
||||
let input: serde_json::Value =
|
||||
serde_json::from_str(input_json).unwrap_or_default();
|
||||
serde_json::from_str(input_json)
|
||||
.unwrap_or_else(|_| serde_json::json!({}));
|
||||
let _ = tx
|
||||
.send(StreamEvent::ToolUseEnd {
|
||||
id: id.clone(),
|
||||
|
||||
@@ -153,9 +153,14 @@ fn rejects_temperature(model: &str) -> bool {
|
||||
m.starts_with("o1")
|
||||
|| m.starts_with("o3")
|
||||
|| m.starts_with("o4")
|
||||
// GPT-5-mini is a reasoning model that rejects temperature
|
||||
// GPT-5 nano/mini are reasoning models that reject temperature
|
||||
|| m.starts_with("gpt-5-mini")
|
||||
|| m.starts_with("gpt-5-nano")
|
||||
|| m.starts_with("gpt5-mini")
|
||||
|| m.starts_with("gpt5-nano")
|
||||
// DeepSeek-R1 reasoning models
|
||||
|| m.contains("deepseek-r1")
|
||||
|| m.contains("reasoner")
|
||||
// Catch any model explicitly tagged as "reasoning"
|
||||
|| m.contains("-reasoning")
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
max_width = 100
|
||||
Reference in New Issue
Block a user