Skip to content
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

Is There an Adapter to Convert ChatTool to AITool? #47871

Open
MikeAlhayek opened this issue Jan 16, 2025 · 1 comment
Open

Is There an Adapter to Convert ChatTool to AITool? #47871

MikeAlhayek opened this issue Jan 16, 2025 · 1 comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@MikeAlhayek
Copy link

Library name and version

Azure.AI.OpenAI 2.1.0

Query/Question

I am trying to utilize Microsoft.Extensions.AI to interact with Azure OpenAI. When using OpenAI with your own data (AzureSearchAI as the source), you need to use the AzureOpenAIClient instead of IChatClient, which is used for standard Azure OpenAI. The AzureOpenAIClient uses ChatCompletionOptions rather than ChatOptions to specify the completion options for the client. Unfortunately, the ChatCompletionOptions.Tools property is a collection of ChatTool, not AITool.

Is there an adapter service or method to convert AITool to ChatTool?

Environment

No response

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. labels Jan 16, 2025
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @ralph-msft @trrwilson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

1 participant