mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 11:17:59 +00:00
Fixed Hugging Face rejecting chats which offer tools
This commit is contained in:
5 files changed
+73
-9
No files matched your search
@@ -184,6 +184,15 @@ public sealed class ProviderHuggingFace : BaseProvider
|
||||
AdditionalApiParameters = apiParameters
|
||||
};
|
||||
},
|
||||
|
||||
//
|
||||
// Hugging Face answers parallel_tool_calls=false with a bad request, "feature
|
||||
// not currently supported", and its specification of the chat completion does
|
||||
// not list the parameter at all -- read on 2026-09-23 at
|
||||
// https://huggingface.co/docs/inference-providers/tasks/chat-completion. Asking
|
||||
// for it would cost every chat which offers tools its answer:
|
||||
//
|
||||
mayAskForSequentialToolCalls: false,
|
||||
token: token))
|
||||
yield return content;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user