eye-gu opened a new issue, #6340: URL: https://github.com/apache/shenyu/issues/6340
### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior The `ai-proxy` plugin currently uses Spring AI's `ChatClient` API to call upstream LLM providers. This causes the gateway to return Spring AI's internal `ChatResponse` object structure instead of the standard OpenAI Chat Completions API format. Clients expecting an OpenAI-compatible API (e.g., `ChatCompletion` / `ChatCompletionChunk`) receive a non-standard response and cannot parse it correctly. Additionally, Spring AI's `createRequest()` reconstructs `ChatCompletionMessage` from `AssistantMessage`, which loses fields such as `reasoning_content`, `refusal`, and `annotations` from the original request. ### Expected Behavior _No response_ ### Steps To Reproduce _No response_ ### Environment ```markdown ShenYu version(s): ``` ### Debug logs _No response_ ### Anything else? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
