# LLM 调用 让插件自己调用模型(而不是只等模型来调你)。 ## `LLMAPI` LLMAPI provides access to the LLM provider manager. | 方法 | 说明 | |---|---| | [`CurrentSource`](#llmapicurrentsource) | | | [`ListSources`](#llmapilistsources) | | | [`SetSource`](#llmapisetsource) | | ### `LLMAPI.CurrentSource` ```go CurrentSource() string ``` `llm.go:7` ### `LLMAPI.ListSources` ```go ListSources() []string ``` `llm.go:5` ### `LLMAPI.SetSource` ```go SetSource(name string) error ``` `llm.go:6` ### `PluginSDK.LLM` ```go func (s *PluginSDK) LLM() LLMAPI ``` LLM returns the LLM provider API (may be nil if not available). `plugin.go:432`