Back to Go Openai

Responses API example

examples/responses/README.md

1.42.0283 B
Original Source

Responses API example

This example shows how to create a response, read its text, and continue the conversation with previous_response_id.

sh
export OPENAI_API_KEY="<your key here>"
go run ./examples/responses

Set OPENAI_MODEL to use a model other than gpt-5.6-sol.