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 declares 1 method for OpenAIClient objects in Go programs.
Available methods include: Complete.
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. |