openai / openai/openai-java

Response object does not contain all elements

Open
#625 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question sdk
Dominant language
Kotlin
Stars
1.5k
Forks
264
Avg merge
9h 46m
Merged PRs (30d)
96

Description

When my prompt gives multiple messages in 1 go.

E.g. via postman

"output": [
{
"id": "msg_....",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [],
"logprobs": [],
"text": "Please wait while I check...."
}
],
"role": "assistant"
},
{
"id": "fs_.....",
"type": "file_search_call",
"status": "completed",
"queries": [
"...."
],
"results": null
},
{
"id": "msg_.....",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [],
"logprobs": [],
"text": "Ok here is what i found...."
}
],
"role": "assistant"
}
]

As you can see in one hit I am getting multiple messages

But in the ResponseOutputItem i am getting only first object; and the other 2 are not coming.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the multiple-message response shown in the issue, using Postman or an equivalent request, and inspect how it is represented by ResponseOutputItem. Verify whether all three output objects are retained; done means the response exposes each message and the file_search_call rather than only the first object.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.