mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-11-30 15:55:49 +08:00
feat: NormalizedProvider
This commit is contained in:
1 parent
5f87357681
commit
081e1f50e2
8 files changed
+169
-14
No files matched your search
@@ -308,7 +308,8 @@ pub async fn consume_model_cycle(
|
||||
usage,
|
||||
));
|
||||
}
|
||||
if matches!(finish_reason, FinishReason::ToolUse) != !calls.is_empty() {
|
||||
let has_tool_calls = !calls.is_empty();
|
||||
if matches!(finish_reason, FinishReason::ToolUse) != has_tool_calls {
|
||||
return Err(failure(
|
||||
RunFailure::Protocol("finish reason and tool calls disagree".into()),
|
||||
text,
|
||||
|
||||
Reference in new issue
Block a user