Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update to official MS AI package #331

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
Loading
from
Open

Conversation

dimodi
Copy link
Contributor

@dimodi dimodi commented May 21, 2025

No description provided.

@dimodi dimodi requested review from a team and Copilot May 21, 2025 14:23
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.

Pull Request Overview

A concise update to the AI package integration demonstrating the new client instantiation patterns and dependency injection approach.

  • Updated code examples in readme.md to remove the deprecated chaining method (.AsChatClient(model)) in favor of standalone client construction
  • Revised Program.cs to configure the AI client via dependency injection using a lambda that retrieves and converts an OpenAIClient
  • Updated inline comments to align with the new integration style

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
common/microsoft-extensions-ai-integration/AIPromptIntegration/readme.md Updated code snippet examples to reflect new API usage by removing .AsChatClient(model) chaining
common/microsoft-extensions-ai-integration/AIPromptIntegration/AIPromptIntegration/Program.cs Revised dependency injection approach with improved inline comments for chat client configuration
Files not reviewed (1)
  • common/microsoft-extensions-ai-integration/AIPromptIntegration/AIPromptIntegration/AIPromptIntegration.csproj: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.