Replies: 2 comments 1 reply
|
I did not look into that specifically but it seems like what we did with #150. |
|
@gerwintmg I think you've identified the issue correctly.
Format = object.Equals(options?.ResponseFormat, ChatResponseFormat.Json)
? "json"
: null;Because of that, schema-based response formats would never be forwarded to Ollama—they'd simply result in Looking at Ollama's API, the
So, assuming Format = object.Equals(options?.ResponseFormat, ChatResponseFormat.Json)
? "json"
: options?.ResponseFormat;or, if additional conversion is required, mapping From what I can tell, the important part is that If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
Uh oh!
There was an error while loading. Please reload this page.
Is Microsoft.Extensions.AI's ChatResponseFormatJson.ForJsonSchema() supported with OllamaSharp?
All reactions