AutoTweaker API
Toggle table of contents
0.2.0-alpha.1+d0e71621
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.adapter
/
Agent
/
setModel
set
Model
jvm
abstract
suspend
fun
setModel
(
config
:
ModelConfig
)
:
Agent
(
source
)
更新 agent 使用的大模型,下次请求立即生效。
要获取当前的大模型配置,请访问
model
。
Throws
Agent
Dead
Exception
Model
Not
Found
Exception
Provider
Not
Found
Exception
Secret
Not
Found
Exception
Secret
Store
Locked
Exception