formulahendry / openai-teams-bot

An OpenAI Teams Bot app to let you chat with OpenAI API in Microsoft Teams, similar to ChatGPT Teams Bot app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After deploy to cloud the chat not worknig

PeterCheungHK opened this issue · comments

After deploy to cloud the chat not worknig

The bot encountered unhandled error:Request failed with status code 401
To continue to run this bot, please fix the bot source code.

Have you set OPENAI_API_KEY in envionment variables of your OS, then restart VS Code, and then do the deployment?

Yes, both setx OPENAI_API_KEY “” and .env.teamsfx.local are set

use F5 local bug is OK and deploy to cloud is not working

Could you go to app settings of App Service app, and see whether the value of OPENAI_API_KEY is set?

Reference: https://learn.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal#configure-app-settings

Could you go to app settings of App Service app, and see whether the value of OPENAI_API_KEY is set?

Reference: https://learn.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal#configure-app-settings

Thank you so much , after setup the key in App service is ok

hi everyone, i was unhandled error when i was trying to change model from text-davinci-003 to gpt-3.5-turbo or gpt-4

any suggestions over here please

hi everyone, i was unhandled error when i was trying to change model from text-davinci-003 to gpt-3.5-turbo or gpt-4

any suggestions over here please

@lhtpavankumar You could try this repo: https://github.com/formulahendry/chatgpt-teams-bot
The code is a little different with the bot of text-davinci-003.