Skip to content

Commit 050e316

Browse files
committed
Fix GPT-5 Responses API issues with condensing and image support
- Fix manual condensing bug by setting skipPrevResponseIdOnce flag in Task.ts - Revert to string-based format for full conversations after condensing - Add proper image support with structured format when using previous_response_id - Update test suite to match new implementation where all models use Responses API - Handle 400 errors gracefully when previous_response_id is not found Fixes issues introduced in PR #6864
1 parent 7457a24 commit 050e316

File tree

4 files changed

+389
-689
lines changed

4 files changed

+389
-689
lines changed

src/api/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ export interface ApiHandlerCreateMessageMetadata {
5252
* Used to enforce "skip once" after a condense operation.
5353
*/
5454
suppressPreviousResponseId?: boolean
55+
/**
56+
* Controls whether the response should be stored for 30 days (OpenAI Responses API).
57+
* Defaults to true if not specified.
58+
*/
59+
store?: boolean
5560
}
5661

5762
export interface ApiHandler {

0 commit comments

Comments
 (0)