Skip to content

Ollama support for streaming function calling and native structured output#5730

Merged
SteveSandersonMS merged 7 commits intomainfrom
stevesa/ollama-streaming-functions-and-structured-output
Dec 10, 2024
Merged

Ollama support for streaming function calling and native structured output#5730
SteveSandersonMS merged 7 commits intomainfrom
stevesa/ollama-streaming-functions-and-structured-output

Conversation

@SteveSandersonMS
Copy link
Copy Markdown
Member

@SteveSandersonMS SteveSandersonMS commented Dec 9, 2024

Fixes #5726 by adding support for native structured output added in Ollama 0.5.0.

Also adds support for streaming function calling added in Ollama 0.4.6.

Microsoft Reviewers: Open in CodeFlow

@dotnet-comment-bot
Copy link
Copy Markdown
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.AI.Ollama Line 80 79.85 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.Diagnostics.Probes 70 76
Microsoft.Extensions.Caching.Hybrid 75 86

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=890118&view=codecoverage-tab

@dotnet-comment-bot
Copy link
Copy Markdown
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.AI.Abstractions Branch 84 83.42 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.Diagnostics.Probes 70 76
Microsoft.Extensions.Caching.Hybrid 75 86

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=890245&view=codecoverage-tab

@dotnet-comment-bot
Copy link
Copy Markdown
Collaborator

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.Diagnostics.Probes 70 76
Microsoft.Extensions.Caching.Hybrid 75 86

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=890288&view=codecoverage-tab

@SteveSandersonMS SteveSandersonMS merged commit 40fa575 into main Dec 10, 2024
@SteveSandersonMS SteveSandersonMS deleted the stevesa/ollama-streaming-functions-and-structured-output branch December 10, 2024 09:08
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2025
@jeffhandley jeffhandley added the area-ai Microsoft.Extensions.AI libraries label Mar 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Microsoft.Extensions.AI] - Add new Structured output support for JSON in Ollama

5 participants