Skip to content

Fix LLM response parsing: summary field should be object not string #192

@exedev-shelley

Description

@exedev-shelley

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 is defined as a string, but according to the OpenAI API documentation for 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions