SkillPedia Skills Encyclopedia
中文 EN

技能 2026-09-29 07:45 UTC

yomo

由提交人 woorui 提交,主要更新类型为:新增功能与能力扩展。提交说明:feat: add system_prompt support for openai-compatible providers (#1283)。带来了新的能力与可配置项,扩展了使用场景。

woorui 036aee1 yomorun/yomo

Commit提交信息原文

feat: add system_prompt support for openai-compatible providers (#1283)

## Summary
- Add optional `system_prompt` param to `openai-compatible` providers,
read from provider `params` in config
- Prepend the prompt to every request: merged into a leading system
message when present, otherwise inserted as a new system message at
position 0
- Applied in both `complete` and `stream` paths before request
validation; blank values are ignored

## Test plan
- 7 new unit tests covering insert vs merge, non-leading system
messages, parts content, and params parsing
- `cargo test`, `cargo fmt`, `cargo check` all pass