Go API Reference
Import
NewClient
Environment defaults:
CreateChatCompletion
Calls POST /openai/v1/chat/completions with stream: false.
StreamChatCompletion
Calls POST /openai/v1/chat/completions with stream: true and returns a ChatCompletionStream.
ListModels
Calls GET /api/v1/models.