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
See original GitHub issueDescribe the bug
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
- run webapi
- run webapp
- go to http://localhost:3000/
- input the chat: How many planets are there in the solar system?
- See error: 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
Screenshots my appsetting.json my webapi console
Desktop (please complete the following information):
- OS: Windows 10 64
- IDE: run on PowerShell
Issue Analytics
- State:
- Created 4 months ago
- Reactions:1
- Comments:10 (1 by maintainers)
Top Results From Across the Web
"HTTP 400 Bad Request" error when proxying ...
This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not...
Read more >Error codes - OpenAI API
This guide includes an overview on error codes you might see from both the API and our official Python library. Each error code...
Read more >400 BAD request HTTP error code meaning?
A 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn't follow...
Read more >REST API HTTP response codes
400, Bad Request, The request URI does not match the APIs in the system, or the operation failed for unknown reasons. Invalid headers...
Read more >HTTP 400 status code (Bad Request) - Amazon CloudFront
To fix this error, update your CloudFront distribution so that it finds the S3 bucket in the bucket's current AWS Region. To update...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Can you please confirm if the AI endpoint and key values are set in
Embeddings
section inappsettings.json
: