Replies: 1 comment
-
Could you please provide the code for the calling part? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encountered an issue when using Spring AI to call OpenAI API. The request only returns a 400 Bad Request error without any detailed error information.
Environment:
Error Log:
When making the same request using curl with identical parameters:
The curl request revealed the actual error message from OpenAI:
Question: Why doesn't Spring AI display these detailed error messages from OpenAI? It would be much more helpful for debugging if the actual error response from OpenAI was included in the logs. Is there a way to configure Spring AI to show the complete error response?
Any help or insights would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions