compat

package
v1.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package compat connects to any OpenAI-compatible Chat Completions endpoint, such as vLLM, LM Studio or a gateway, and holds the Config shared by the vendor wrappers (deepseek, glm, grok, mimo, minimax, ollama, openrouter, qwen).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = openaicompat.Config

Config holds the connection settings; its fields are documented on the aliased type.

type Provider

type Provider = openaicompat.Provider

Provider implements litellm.Provider and litellm.CapabilityProvider.

func New

func New(cfg Config) (*Provider, error)

New speaks the plain Chat Completions protocol: max_tokens, reasoning_effort and no vendor extensions. BaseURL is required and the API key optional. Every ProviderOption is copied into the request body as is.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL