Skip to content

How to use responses API? #438

Open
Open
@transfercai

Description

@transfercai

When I use gin/gonic, how can I use context.BindJson with struct "ResponseNewParams"? My request body was like this

`

 "model": "o3",

"reasoning": {"effort": "medium"},

"input": [
  {
    "role": "user",
    "content": "Write a bash script that takes a matrix represented as a string with format \"[1,2],[3,4],[5,6]\" and prints the transpose in the same format."
  }
]

`

but when I use function Bindjson, I can't get a struct with input value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions