Dive icon indicating copy to clipboard operation
Dive copied to clipboard

Error: 400

Open kosred opened this issue 1 year ago • 5 comments

Error: 400 * GenerateContentRequest.tools[0].function_declarations[87].parameters.type: must be specified when not using one_of, any_of or all_of fields

thats for gemini models. it tries to use probably the filesystem tools 0.8 vertion of dive.

for openai models

Error: Error code: 400 - {'error': {'message': "Invalid schema for function 'convert-contents': schema must have type 'object' and not have 'oneOf'/'anyOf'/'allOf'/'enum'/'not' at the top level.", 'type': 'invalid_request_error', 'param': 'tools[87].function.parameters', 'code': 'invalid_function_parameters'}}

Error: Error code: 400 - {'error': {'message': "Invalid schema for function 'convert-contents': schema must have type 'object' and not have 'oneOf'/'anyOf'/'allOf'/'enum'/'not' at the top level.", 'type': 'invalid_request_error', 'param': 'tools[74].function.parameters', 'code': 'invalid_function_parameters'}}

the same promt was used in all cases.

kosred avatar Apr 22 '25 00:04 kosred

@kosred Is the filesystem tool you are using https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem? And what platform are you using?

johnfunmula avatar Apr 22 '25 01:04 johnfunmula

i copied the config from claude desktop from windows os 11 it was working in the previous version partially for gemini and yes as far as i remember its that mcp tool.

kosred avatar Apr 22 '25 04:04 kosred

@kosred Can you provide the settings for the filesystem tool? It should be in %USERPROFILE%\.dive\config\mcp_config.json. Only need to provide the filesystem part.

johnfunmula avatar Apr 22 '25 05:04 johnfunmula

Yes I can provide everything you need, dive is a very interesting application that I would like to use permanently in the future. As now I am at work you need to wait 14 hours.

Στις Τρί 22 Απρ 2025, 07:33 ο χρήστης John @.***> έγραψε:

@kosred https://github.com/kosred Can you provide the settings for the filesystem tool? It should be in %USERPROFILE%.dive\config\mcp_config.json. Only need to provide the filesystem part.

— Reply to this email directly, view it on GitHub https://github.com/OpenAgentPlatform/Dive/issues/131#issuecomment-2820120283, or unsubscribe https://github.com/notifications/unsubscribe-auth/BN2FZJWDZOY2MA25TNFPVWD22XIDNAVCNFSM6AAAAAB3SKRUDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRQGEZDAMRYGM . You are receiving this because you were mentioned.Message ID: @.***> johnfunmula left a comment (OpenAgentPlatform/Dive#131) https://github.com/OpenAgentPlatform/Dive/issues/131#issuecomment-2820120283

@kosred https://github.com/kosred Can you provide the settings for the filesystem tool? It should be in %USERPROFILE%.dive\config\mcp_config.json. Only need to provide the filesystem part.

— Reply to this email directly, view it on GitHub https://github.com/OpenAgentPlatform/Dive/issues/131#issuecomment-2820120283, or unsubscribe https://github.com/notifications/unsubscribe-auth/BN2FZJWDZOY2MA25TNFPVWD22XIDNAVCNFSM6AAAAAB3SKRUDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRQGEZDAMRYGM . You are receiving this because you were mentioned.Message ID: @.***>

kosred avatar Apr 22 '25 05:04 kosred

sure, no problem.

johnfunmula avatar Apr 22 '25 05:04 johnfunmula