semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

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

Open Julian-Chou opened this issue 2 years ago • 4 comments

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):

  • OS: Windows 10

Julian-Chou avatar May 10 '23 03:05 Julian-Chou

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

evchaki avatar May 11 '23 21:05 evchaki

@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.

hathind-ms avatar May 16 '23 18:05 hathind-ms

@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

Julian-Chou avatar May 17 '23 01:05 Julian-Chou

@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.

TaoChenOSU avatar May 17 '23 04:05 TaoChenOSU