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
Cannot use Azure OpenAI service #163
Comments
@adiazcan the value your passing for |
Hello @Stevenic I pass the Azure endpoint from my service like https://****.openai.azure.com/ |
Hey @adiazcan, could you confirm:
I have verified the internal AOAI endpoint/password works, so we may need to dig a little more to find the root problem in this scenario. |
Hello @corinagum Trying to answer your questions and reviewing the code I found that the OpenAIModerator object also need the endpoint parameter. I'm going to create a PR on the documentation to put this param at the tutorial I'm following. Thanks! |
oh, nice catch. Your PR would be much appreciated! I'll close this issue as resolved. :) |
Hi @adiazcan Based on your comment, I also tried to make TeamsChefBot compatible with Azure OpenAI Service, but it does not work.
I have made the following changes to this file. // https://xxx.openai.azure.com is dummy
const planner = new AzureOpenAIPlanner({
apiKey: process.env.OPENAI_API_KEY,
defaultModel: 'text-davinci-003',
logRequests: true,
endpoint: 'https://xxx.openai.azure.com',
apiVersion: '2023-05-15'
});
const moderator = new OpenAIModerator({
apiKey: process.env.OPENAI_API_KEY,
moderate: 'both',
endpoint: 'https://xxx.openai.azure.com'
}); What other responses have you made? |
@tsubakimoto currently moderation is not fully implemented in AOAI and is in development. For me, not including moderation worked. Could you give that a try? |
@corinagum Thank you for your support. |
I tried to use Azure OpenAI with the new @microsoft/teams-ai, version 0.1.0-preview.2, and I had the following error on the completion request:
[onTurnError] unhandled error: AxiosError: Request failed with status code 401
To reproduce the problem, I change the OpenAIPlanner for the following AzureOpenAIPlanner:
Debugging the problem, the code requested the OpenAI endpoint not the Azure endpoint.
Maybe I missed a param to configure the planner to use Azure or the Azure Planner is not correctly configured to use the Azure OpenAI client.
The text was updated successfully, but these errors were encountered: