Go API Reference
Import
NewClient
CreateChatCompletion
Calls POST /openai/v1/chat/completions and returns a non-streaming Chat Completions response.
StreamChatCompletion
Reads SSE chunks. io.EOF means the stream is complete.
ListModels
Calls GET /api/v1/models.