**Author:** nhkhang **Channel:** #shelley **Link:** https://discord.com/channels/1405685085923049482/1450334528210993295/1499832076755665038 --- ## Issue Getting error when processing LLM responses: ``` LLM request failed: failed to unmarshal response: json: cannot unmarshal object into Go struct field responsesOutputItem.output.summary of type string ``` ## Details The `summary` field in the response struct at [llm/oai/oai_responses.go#L99](https://github.com/boldsoftware/shelley/blob/c6e80cf13a06bafa62d4003e82a47a7e294349fd/llm/oai/oai_responses.go#L99) is defined as a `string`, but according to the [OpenAI API documentation for reasoning summaries](https://developers.openai.com/api/docs/guides/reasoning#reasoning-summaries), it should be an object. ## Action Items - [ ] Update the struct definition to use the correct type for `summary` field - [ ] Test against OpenAI reasoning endpoints
Author: nhkhang
Channel: #shelley
Link: https://discord.com/channels/1405685085923049482/1450334528210993295/1499832076755665038
Issue
Getting error when processing LLM responses:
Details
The
summaryfield in the response struct at llm/oai/oai_responses.go#L99 is defined as astring, but according to the OpenAI API documentation for reasoning summaries, it should be an object.Action Items
summaryfield