Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenRouterClient ¶
type OpenRouterClient interface {
GenerateText(
messages []map[string]any,
model string,
temperature *float64,
maxTokens *int,
timeOut *int,
reasoning *map[string]any,
provider *map[string]any,
) (t.OpenRouterResponse, error)
GenerateTools(
messages []map[string]any,
tools []map[string]any,
model string,
temperature *float64,
maxTokens *int,
timeOut *int,
reasoning *map[string]any,
provider *map[string]any,
) (t.OpenRouterResponse, error)
GenerateStuctured(
messages []map[string]any,
schema map[string]any,
model string,
temperature *float64,
maxTokens *int,
timeOut *int,
reasoning *map[string]any,
provider *map[string]any,
) (t.OpenRouterResponse, error)
}
func NewClient ¶
func NewClient(apiKey string) OpenRouterClient
Click to show internal directories.
Click to hide internal directories.