跳转至

LLM 调用

让插件自己调用模型(而不是只等模型来调你)。

LLMAPI

LLMAPI provides access to the LLM provider manager.

方法 说明
CurrentSource
ListSources
SetSource

LLMAPI.CurrentSource

CurrentSource() string

llm.go:7

LLMAPI.ListSources

ListSources() []string

llm.go:5

LLMAPI.SetSource

SetSource(name string) error

llm.go:6

PluginSDK.LLM

func (s *PluginSDK) LLM() LLMAPI

LLM returns the LLM provider API (may be nil if not available).

plugin.go:432