LLM 调用¶
让插件自己调用模型(而不是只等模型来调你)。
LLMAPI¶
LLMAPI provides access to the LLM provider manager.
| 方法 | 说明 |
|---|---|
CurrentSource |
|
ListSources |
|
SetSource |
LLMAPI.CurrentSource¶
llm.go:7
LLMAPI.ListSources¶
llm.go:5
LLMAPI.SetSource¶
llm.go:6
PluginSDK.LLM¶
LLM returns the LLM provider API (may be nil if not available).
plugin.go:432