Commit 8326985
committed
Fix JsonSchemaGenerator for method input parameters
- For method input parameters, if the JSON schema generator adds OpenAPI "format" property, some LLMs (ex: Mistral) fail to process the request. Hence, removing this specific property from the JSON schema
- This issue was uncovered by MistralAiChatModelIT#chatMemoryWithTools where the method toolcallback is used
Signed-off-by: Ilayaperumal Gopinathan <[email protected]>1 parent 4408c46 commit 8326985
File tree
1 file changed
+2
-0
lines changed- spring-ai-model/src/main/java/org/springframework/ai/util/json/schema
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
0 commit comments