microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
350 stars 144 forks source link

I have an issue with h.datasource-azureOpenAI JS sample #1682

Closed ahmedmahmoudR closed 3 weeks ago

ahmedmahmoudR commented 1 month ago

Language

Javascript/Typescript

Version

latest

Description

I followed all the steps to configure the Azure OpenAI and Search services, replacing the necessary keys and endpoints. However, I am encountering issues during normal Chrome debugging, where it repeatedly asks for the Azure Search key and Azure OpenAI key. Additionally, when I use the Teams Toolkit testtool, I receive an unhandled error message: [onTurnError] unhandled error: AxiosError: Request failed with status code 400 +0ms.

Chrome debugging

image

Teams testtool debugging

image

image

image

Please note I test az open key and endpoint with other sample code and its works fine

Reproduction Steps

1.Clone repo
2.replace the azure key and azure endpoint 
3.create .env file 
4.add azure search key and endpoint to propmt config.json
5. run npm i
6. test the app
...
corinagum commented 3 weeks ago

Please verify that your index_name in the code matches the index name of your files on oai.azure.com. When customers have encountered a 400 error on this sample, that has usually been the cause of the bug.