Skip to content

Add OpenAI Go API example#18

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

Add OpenAI Go API example#18
donvito wants to merge 1 commit into
masterfrom
cursor/go-openai-example-7dd3

Conversation

@donvito
Copy link
Copy Markdown
Owner

@donvito donvito commented May 12, 2026

Summary

  • Add a standalone ai/go-openai module demonstrating OpenAI Chat Completions from Go
  • Include a small reusable client and runnable main using OPENAI_API_KEY
  • Add unit tests covering request construction, default model behavior, validation, API errors, and empty choices
  • 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