agentscope-ai / agentscope-ai/agentscope-runtime-java

[Bug / Tech Debt] Refactor OpenAI responses API protocol: Replace Manual Implementation with SDK-Based Approach

未關閉
#69 0 則留言 0 個 reaction 已指派 1 人 已被 @xuehuitian45 認領 在 GitHub 檢視
bug
主要語言
Java
星號
184
分支
38
PR 合併指標
30 天內沒有已合併 PR

描述

### Description

The current OpenAI Responses API protocol is **largely hand-written based on public documentation**. While this offers initial flexibility, it introduces several critical risks:

- **Inconsistencies with actual API behavior** (e.g., field names, status codes, error formats)
- **Missing edge cases** (rate limits, retry logic, pagination, streaming headers)
- **Hard to maintain** when upstream APIs evolve
- **No type safety or compile-time validation**
- **Duplication of effort** when official SDKs already exist

This has already led to subtle bugs in production—such as malformed JSON payloads, incorrect error handling, or unexpected deserialization failures—especially when integrating with new models or third-party services

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。