-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update Microsoft.Extensions.AI to version 9.5.0 #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Thanks for contributing @copilot! We will review the pull request and get back to you soon. |
… version 9.5.0 Co-authored-by: elbruno <[email protected]>
… project files (1/2) Co-authored-by: elbruno <[email protected]>
… project files (2/2) Co-authored-by: elbruno <[email protected]>
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
1 similar comment
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
|
@copilot on the updated packages, I got this error while trying to build the project. Unable to find package Microsoft.Extensions.AI.OpenAI with version (>= 9.5.0)
Validate and fix the error on the updated projects so they can build correctly, also check if the code need to be updated with the latest packages versions. |
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
Co-authored-by: elbruno <[email protected]>
Co-authored-by: elbruno <[email protected]>
I've fixed the package reference issues in the project files. The problem was that while Microsoft.Extensions.AI 9.5.0 is available as a stable version, the other packages (Microsoft.Extensions.AI.OpenAI, Microsoft.Extensions.AI.AzureAIInference, and Microsoft.Extensions.AI.Ollama) are only available as preview versions (9.5.0-preview.1.25265.7). I've updated all project files and documentation to use the correct preview version references. A test build of one of the affected projects now succeeds. See commit e2dde60. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot , there are still some errors while trying to build the whole solution. 'IEmbeddingGenerator<string, Embedding>' does not contain a definition for 'GenerateEmbeddingVectorAsync' and no accessible extension method 'GenerateEmbeddingVectorAsync' accepting a first argument of type 'IEmbeddingGenerator<string, Embedding>' could be found (are you missing a using directive or an assembly reference?) Build the solution [https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/03-CoreGenerativeAITechniques/src/CoreGenerativeAITechniques.sln] and fix this errors. It seems that the GenerateEmbeddingVectorAsync() function was changed to a new name in the latest version. |
Co-authored-by: elbruno <[email protected]>
I've fixed the issue with the build errors in the RAGSimple-02MEAIVectorsMemory project. You're right that the API changed in the latest version of the Microsoft.Extensions.AI packages - the I've updated all three projects that use this method:
Changes are in commit 56ba89d. |
|
@copilot still having errors. The function [GenerateEmbeddingAsync] must be [GenerateVectorAsync()] |
Co-authored-by: elbruno <[email protected]>
I've updated the method name from Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
elbruno
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
This PR updates all references to Microsoft.Extensions.AI packages to version 9.5.0 across the repository.
The following changes were made:
Updated documentation files to reference version 9.5.0 for Microsoft.Extensions.AI.OpenAI:
Updated all project files (.csproj) to use version 9.5.0 for the following packages:
This ensures that the repository now uses the latest version of the Microsoft.Extensions.AI packages, aligning with the information provided in the NuGet package reference: https://www.nuget.org/packages/Microsoft.Extensions.AI/9.5.0
Fixes #145.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.