新增AI绘图统一LLM配置
1. 在config.yaml中新增AI绘图专用的OpenAI兼容backend,接入用户提供的网关地址与密钥。 2. 在llm.scenes中新增image.generate场景,统一路由AI绘图插件请求。 3. 将ai_gen_image插件默认scene切换为image.generate,实现开箱即用。
This commit is contained in:
@@ -33,5 +33,5 @@ legacy_model = "turbo"
|
||||
# 2. 插件会从该 scene 对应的 backend 中复用 api_base_url / api_key;
|
||||
# 3. 图片接口默认请求 images/generations,如需特殊网关可在这里覆盖 image_endpoint。
|
||||
[AIGenImage.llm]
|
||||
scene = ""
|
||||
scene = "image.generate"
|
||||
image_endpoint = "images/generations"
|
||||
|
||||
Reference in New Issue
Block a user