Documentation
¶
Overview ¶
Package openaicompat provides a lightweight client for any OpenAI-compatible chat completions API (llama.cpp, vLLM, LM Studio, Ollama /v1, etc.).
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 calls a single OpenAI-compatible /v1/chat/completions endpoint.
func NewClient ¶
NewClient creates a Client for the given base URL (e.g. "http://localhost:8080"). apiKey may be empty for unauthenticated local servers.
Click to show internal directories.
Click to hide internal directories.