Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an Compatible LLM client.
It implements the core.Client interface and provides access to Compatible's chat completion API, including GPT-3.5, GPT-4, and other models.
The client handles authentication, retries, error handling, and streaming automatically. It supports all Compatible features including tool calling, multimodal inputs, and extended thinking (for o1/o3 models).
type Config ¶
Config defines configuration for the Compatible client.
Embed base.Config to inherit common settings like APIKey, Model, Temperature, etc.
Example:
config := compatible.Config{
Config: base.Config{
APIKey: "sk-...",
Model: "gpt-4",
Temperature: 0.7,
MaxTokens: 1000,
},
}
client, err := compatible.New(config)
Click to show internal directories.
Click to hide internal directories.