Describe the bug
I am using Dirac with a custom Inference Endpoint and model from Hugging Face. When using Dirac the following error is always returned:
Error: Tool use failure. Can potentially be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").
To Reproduce
Steps to reproduce the behavior:
dirac auth to add the API key, HG inference endpoint and custom endpoint URL as an OpenAPI compatible custom model.
dirac to start the interactive CLI
- Type any command. In my case I loaded a skill and asked the model to wite Hello World! code and save to disk.
- See error. Full error output looks like:
/ocaml-dev Write a file named main.ml with the content: let hello_world () = print_string "Hello, World!";;.
{
"name": "write_to_file",
"arguments": {
"path": "src/main.ml",
"content": "let hello_world () = print_string \"Hello, World!\";;."
}
}
{
"name": "attempt_completion",
"arguments": {
"result": "The main.ml file now contains the following content:",
"command": ""
}
}
{
"name": "attempt_completion",
"arguments": {
"result": "The main.ml file now contains the following content:",
"command": ""
}
}
{
"name": "attempt_completion",
"arguments": {
"result": "The main.ml file now contains the following content:",
"command": ""
}
}
{
"name": "attempt_completion",
"arguments": {
"result": "The main.ml file now contains the following content:",
"command": ""
}
}
Error: Tool use failure. Can potentially be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").
It seems to me that connection to the model is working fine itself, because the Hello World! code was output. The issue is calling the tool to write the file.
The error is not input specific. I can write any instruction and the same error is returned. Using the Hugging Face chat agent associated with this endpoint in the "Playground" works as expected. All instructions return expected content.
I have used Dirac successfully in the last days, so current v0.3.44, configured to use a Mistral model. No problem with making tool calls in this case. As far as I know, nothing has changed in the environment between the provider/model configuration change.
Expected behavior
Exected behaviour is that Dirac would write the model output to file as requested. Thus, Dirac should have access to the tools to do this.
Surface and Version:
Describe the bug
I am using Dirac with a custom Inference Endpoint and model from Hugging Face. When using Dirac the following error is always returned:
Error: Tool use failure. Can potentially be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").
To Reproduce
Steps to reproduce the behavior:
dirac authto add the API key, HG inference endpoint and custom endpoint URL as an OpenAPI compatible custom model.diracto start the interactive CLIIt seems to me that connection to the model is working fine itself, because the Hello World! code was output. The issue is calling the tool to write the file.
The error is not input specific. I can write any instruction and the same error is returned. Using the Hugging Face chat agent associated with this endpoint in the "Playground" works as expected. All instructions return expected content.
I have used Dirac successfully in the last days, so current v0.3.44, configured to use a Mistral model. No problem with making tool calls in this case. As far as I know, nothing has changed in the environment between the provider/model configuration change.
Expected behavior
Exected behaviour is that Dirac would write the model output to file as requested. Thus, Dirac should have access to the tools to do this.
Surface and Version: