microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.87k stars 3.26k forks source link

Unable to generate bot response. Details: Error: 400: => Runtime error: Function `ChatSkill.ExtractUserMemories` execution failed. Microsoft.SemanticKernel.AI.AIException: Access denied: The request is not authorized, HTTP status: 403 #906

Closed Julian-Chou closed 1 year ago

Julian-Chou commented 1 year ago

Describe the bug When I open the chatbot and type to chat, I get an error message: Unable to generate bot response. Details: Error: 400: => Runtime error: Function ChatSkill.ExtractUserMemories execution failed. Microsoft.SemanticKernel.AI.AIException: Access denied: The request is not authorized, HTTP status: 403

I used postman to try is normal

Screenshots my chat bot screen: image my console screen: image used the postman to try to call API image

Desktop (please complete the following information):

evchaki commented 1 year ago

@Julian-Chou can you pull the latest and try this again.

hathind-ms commented 1 year ago

@Julian-Chou - do you have AI endpoint and Key set up in Embeddings section in appsettings.json? Key can alternatively be set using dotnet secrets as well. Also, make sure you have access to the selected model.

Julian-Chou commented 1 year ago

@hathind-ms I use OpenAI as AI completion service, it can ignore Endpoint value. My json file is below, please let me know if I misunderstood you, thanks. image

TaoChenOSU commented 1 year ago

@hathind-ms I use OpenAI as AI completion service, it can ignore Endpoint value. My json file is below, please let me know if I misunderstood you, thanks. image

Hello Julian, you will have to use an embedding model for this. The one you have gtp-3.5-turbo is a completion model.