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 件 担当者 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 を短くまとめたダイジェスト。