Skip to content

Add Go OpenAI API example#19

Draft
donvito wants to merge 1 commit into
masterfrom
cursor/go-openai-example-de76
Draft

Add Go OpenAI API example#19
donvito wants to merge 1 commit into
masterfrom
cursor/go-openai-example-de76

Conversation

@donvito
Copy link
Copy Markdown
Owner

@donvito donvito commented May 12, 2026

Summary

  • Add a standalone ai/go-openai example module using the OpenAI Responses API with Go's standard HTTP client
  • Include a small main.go demonstrating OPENAI_API_KEY usage
  • Add unit tests with an httptest server for request construction, response parsing, and error paths
  • Link the new example from the root README

Testing

  • go test ./... from ai/go-openai
Open in Web Open in Cursor 

Co-authored-by: Melvin Vivas <melvindave@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants