openrouter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 7 Imported by: 0

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