SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-09-29 07:45 UTC

yomo

Committed by woorui. Update Category: New Features & Capability Expansion. Commit details: feat: add system_prompt support for openai-compatible providers (#1283). This update introduces new capabilities and expands supported use cases.

woorui 036aee1 yomorun/yomo

CommitRaw commit message

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