Skip to content

Conversation

jongalloway
Copy link
Contributor

@jongalloway jongalloway commented Apr 7, 2025

Standard HttpClient timeout of 10 seconds applied by Service Defaults under .NET Aspire is likely too short for Ollama calls. Add note with code to extend this timeout.

Documentation update:

Microsoft Reviewers: Open in CodeFlow

Standard HttpClient timeout of 10 seconds applied by Service Defaults under .NET Aspire is likely too short for Ollama calls. Add note with code to extend this timeout.
@jongalloway jongalloway requested a review from a team as a code owner April 7, 2025 23:05
@jongalloway jongalloway requested a review from Copilot April 7, 2025 23:06
@github-actions github-actions bot added the area-ai-templates Microsoft.Extensions.AI.Templates label Apr 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

…tWithCustomData/README.Aspire.md

Co-authored-by: Copilot <[email protected]>
…tWithCustomData/README.Aspire.md

Co-authored-by: Mackinnon Buck <[email protected]>
@jeffhandley jeffhandley merged commit 9a19f6d into main Apr 16, 2025
6 checks passed
@jeffhandley jeffhandley deleted the jongalloway/ai-ollama-extend-timeout branch April 16, 2025 05:45
jeffhandley pushed a commit that referenced this pull request Apr 16, 2025
* Add note on extending timeout for Ollama client

Standard HttpClient timeout of 10 seconds applied by Service Defaults under .NET Aspire is likely too short for Ollama calls. Add note with code to extend this timeout.

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/README.Aspire.md

Co-authored-by: Copilot <[email protected]>

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/README.Aspire.md

Co-authored-by: Mackinnon Buck <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Mackinnon Buck <[email protected]>
jeffhandley pushed a commit to jeffhandley/extensions that referenced this pull request Apr 17, 2025
* Add note on extending timeout for Ollama client

Standard HttpClient timeout of 10 seconds applied by Service Defaults under .NET Aspire is likely too short for Ollama calls. Add note with code to extend this timeout.

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/README.Aspire.md

Co-authored-by: Copilot <[email protected]>

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/README.Aspire.md

Co-authored-by: Mackinnon Buck <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Mackinnon Buck <[email protected]>
jeffhandley added a commit that referenced this pull request Apr 17, 2025
* Add missing reference to M.E.AI.OpenAI (#6275)

* Update README.md with keyless auth guidance (#6261)

* Update README.md

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/README.md

Co-authored-by: Jon Galloway <[email protected]>

---------

Co-authored-by: Jon Galloway <[email protected]>

* Add note on extending timeout for Ollama client (#6258)

* Add note on extending timeout for Ollama client

Standard HttpClient timeout of 10 seconds applied by Service Defaults under .NET Aspire is likely too short for Ollama calls. Add note with code to extend this timeout.

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/README.Aspire.md

Co-authored-by: Copilot <[email protected]>

* Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/README.Aspire.md

Co-authored-by: Mackinnon Buck <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Mackinnon Buck <[email protected]>

* Update chat template dependencies, fix OpenAI/Aspire config, and address build warnings (#6280)

* Update chat template dependencies

* Update test snapshots

* Update Aspire version

* Revert Aspire + update CommunityToolkit.Aspire

* Open README in VS after project creation

* Add Known Issue to Aspire README for Qdrant

* Update survey template URL

* Set the Project Template package version to -preview.2

* Update template baseline

* Update template pinned versions

* Do not append template args to snapshot names

* Fix vector store index in the README. Add an AzureAISearch template test.

* Add a note to the Aspire README for trusting the development certificate

* Use AddOpenAIClient for OpenAI and AddAzureOpenAIClient for Azure OpenAI

* Remove duplicated using System.ClientModel

* Update Aspire README to specify the exception thrown for the known issue

* Augment the Aspire README for more Docker notes for Ollama and Qdrant

* Fix Microsoft.Extensions.Http.Resilience warnings with separate pinned versions

* Update test baseline for: Rename EmbeddingGeneratorExtensions.GenerateEmbedding extension methods (#6295)

* Add --managed-identity to the template developer README

* Apply the Ollama timeout recommendation in the template code

* Call http.RemoveAllResilienceHandlers before adding the handler

* Update template test baseline

---------

Co-authored-by: Jeff Handley <[email protected]>
Co-authored-by: David Cantu <[email protected]>

---------

Co-authored-by: Mackinnon Buck <[email protected]>
Co-authored-by: Jordan Matthiesen <[email protected]>
Co-authored-by: Jon Galloway <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: David Cantu <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai-templates Microsoft.Extensions.AI.Templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants