-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Unable to generate bot response. Details: Error: 400: => Runtime error: Function ChatSkill.ExtractUserMemories
execution failed. Microsoft.SemanticKernel.AI.AIException: Invalid request: The request is not valid, HTTP status: 400
#904
Comments
I am seeing similar issue but with the 404 error: Unable to generate bot response. Details: Error: 400: => Runtime error: Function Exception call stack:
|
same issure here |
Same here with the latest code from "main" branch. |
Update: after tried talk with the chatbot 5 or some more times, the issue looks gone. |
Same 404 issue here. Tried a lot of times, but the issue is still there.
|
Same here with the latest code from "main" branch. Windows and Mac are encountering the same error. |
webapi server: |
Can you please confirm if the AI endpoint and key values are set in
|
Update: for the 404 error I mentioned above, it is because the embedding deployment/model id "text-embedding-ada-002" specified in the config had not been deployed in my Azure OAI resource. After deploying the model, I am able to setup and use the chat app successfully without any errors. |
In my case, the OpenAI deployment names are different from the model names, ie. "chatgpt-35-turbo". Then you have to change them to the deployment names in your WebApi's Configuration under |
Describe the bug
![image](https://private-user-images.githubusercontent.com/78351058/237262864-c170af71-968c-4400-8ba4-c724c476cac7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNDk2OTMsIm5iZiI6MTcyMDE0OTM5MywicGF0aCI6Ii83ODM1MTA1OC8yMzcyNjI4NjQtYzE3MGFmNzEtOTY4Yy00NDAwLThiYTQtYzcyNGM0NzZjYWM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDAzMTYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4N2JjYmI0N2E4ODM5ODcxMzI2MjVlZjAzODMyN2U5M2E3MDEwZGJmNDA2YTM2Y2Y2NDBmNmQxNjAwN2IyZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lmE5SOXxkdcHztDxAL--7E5IcoAwwZo8WHVEvm9aL48)
I can run webapi and webapp, but get the error message been shown the browser like 'Unable to generate bot response. Details: Error: 400: => Runtime error: Function
ChatSkill.ExtractUserMemories
execution failed. Microsoft.SemanticKernel.AI.AIException: Invalid request: The request is not valid, HTTP status: 400' as below.A clear and concise description of what the bug is.
To Reproduce
ChatSkill.ExtractUserMemories
execution failed. Microsoft.SemanticKernel.AI.AIException: Invalid request: The request is not valid, HTTP status: 400Screenshots
![image](https://private-user-images.githubusercontent.com/78351058/237263540-cb87b251-a992-4952-be6d-d63958b64b3e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNDk2OTMsIm5iZiI6MTcyMDE0OTM5MywicGF0aCI6Ii83ODM1MTA1OC8yMzcyNjM1NDAtY2I4N2IyNTEtYTk5Mi00OTUyLWJlNmQtZDYzOTU4YjY0YjNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDAzMTYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdlNDY2ZjYzNDE4ODEzNTMxN2RiMDAzOTRjN2QyNWZlNjdiOTdiOGEzN2NlNjM4YzUxYzlmYTRjMGY5OTk4ZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._7wiXA_8lQNXlFmQIFWhYr4dYOh78a-eQLRMEywY-5Q)
![image](https://private-user-images.githubusercontent.com/78351058/237263636-135a9b3b-cd4b-4b2e-97c0-d5b8e8e11976.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNDk2OTMsIm5iZiI6MTcyMDE0OTM5MywicGF0aCI6Ii83ODM1MTA1OC8yMzcyNjM2MzYtMTM1YTliM2ItY2Q0Yi00YjJlLTk3YzAtZDViOGU4ZTExOTc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDAzMTYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxODA5YjIyMjFkMjVlYjNiYzQ1ZGQ5MjE3MGNlZjBlZDg1NmVjMDRkN2IyODljNzJhNDI1YzVmN2U3ZjA1OTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.AhhGVxdhKo_4peal5Y8xEFR_CuTaVzWNkDITf6yrAUc)
my appsetting.json
my webapi console
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: