Skip to content

Commit 36b94ea

Browse files
authored
Fix issue with openai (#265)
Fixes #264 This schema is rejected by OpenAI because the value could be an array without items type. This seems to fix it. A better solution would maybe be to use anyOf with a union of all five possible types. Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 5f194e1 commit 36b94ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/gateway/dynamic_mcps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ func (g *Gateway) createMcpConfigSetTool(_ *clientConfig) *ToolRegistration {
745745
"value": {
746746
Types: []string{"string", "number", "boolean", "object", "array"},
747747
Description: "Configuration value to set (can be string, number, boolean, object, or array)",
748+
Items: &jsonschema.Schema{Type: "object"},
748749
},
749750
},
750751
Required: []string{"server", "key", "value"},

0 commit comments

Comments
 (0)