model

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChatModel

func NewChatModel(opts ...OptionFunc) (model.ToolCallingChatModel, error)

func NewEmbModel

func NewEmbModel(opts ...OptionFunc) (embedding.Embedder, error)

Types

type Option

type Option struct {
	Platform   string
	Model      string
	BaseUrl    string
	APIKey     string `json:"apiKey"`
	Dimensions int
	MaxTokens  int

	//openai参数
	ReasoningEffortLevel openai.ReasoningEffortLevel
}

type OptionFunc

type OptionFunc func(option *Option)

func WithAPIKey

func WithAPIKey(apiKey string) OptionFunc

func WithBaseUrl

func WithBaseUrl(baseUrl string) OptionFunc

func WithDimensions

func WithDimensions(dimensions int) OptionFunc

func WithMaxTokens

func WithMaxTokens(maxTokens int) OptionFunc

func WithModel

func WithModel(model string) OptionFunc

func WithPlatform

func WithPlatform(platform string) OptionFunc

func WithReasoningEffortLevel

func WithReasoningEffortLevel(reasoningEffortLevel openai.ReasoningEffortLevel) OptionFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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