-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpt-4o works with custom mcp, but sonnet fails #1079
Comments
logs from sonnet:
...
logs from gpt-4o:
...
|
yeah there's some variation between the model providers and you have to experiment which one works best for you. Goose typically works best if you include this recently got added to the MCP python and typescript sdk: Goose will extract the MCP's instructions and add it to the model's system prompt: https://github.com/block/goose/blob/main/crates/goose/src/prompts/system.md?plain=1 |
Fixes block#1079 Update `response_to_message` and `create_request_based_on_model` functions to handle empty arguments for tool calls. * **`crates/goose/src/providers/formats/openai.rs`**: - Update the `response_to_message` function to handle empty arguments for tool calls. - Add a check for empty arguments and set them to an empty JSON object if they are empty. * **`crates/goose/src/providers/openrouter.rs`**: - Update the `create_request_based_on_model` function to ensure tool call arguments are properly formatted. - Add a check to format tool call arguments as an empty JSON object if they are empty. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1079?shareId=XXXX-XXXX-XXXX-XXXX).
Thank you very much! I will definitely add instructions |
Fixes block#1079 Update `response_to_message` and `create_request_based_on_model` functions to handle empty arguments for tool calls. * **`crates/goose/src/providers/formats/openai.rs`**: - Update the `response_to_message` function to handle empty arguments for tool calls. - Add a check for empty arguments and set them to an empty JSON object if they are empty. * **`crates/goose/src/providers/openrouter.rs`**: - Update the `create_request_based_on_model` function to ensure tool call arguments are properly formatted. - Add a check to format tool call arguments as an empty JSON object if they are empty. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1079?shareId=XXXX-XXXX-XXXX-XXXX).
I use custom mcp server for logseq logseq mcp repo
gpt-4o responce:
sonnet openrouter responce:
The text was updated successfully, but these errors were encountered: