OpenAIClient
Overview
OpenAIClient is a type in Aspose.PDF FOSS for Go.
OpenAIClient talks to an OpenAI-compatible chat-completions endpoint using only the standard library.
This type provides 1 method for working with OpenAIClient objects in Go programs.
Available methods include: Complete.
All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Methods
| Signature | Description |
|---|---|
Complete(ctx: context.Context, req: CompletionRequest) → (*CompletionResponse, error) | Complete sends one chat completion and returns the model’s reply. |