Skip to content

Conversation

@edenreich
Copy link
Contributor

This PR implements system prompt configuration for the Inference Gateway CLI as requested in issue #25.

Changes

  • Add system_prompt field to ChatConfig in config structure
  • Implement infer config set-system command for setting system prompts
  • Update chat service to include system prompt in API messages
  • Modify service container to pass system prompt to chat service
  • Update documentation with new command and configuration examples

Usage

# Set a system prompt
infer config set-system "You are a helpful assistant."

# The system prompt is now included with every chat session
infer chat

The system prompt is configurable via command or by modifying the config directly and is included in SDK messages as a system prompt.

Resolves #25

Generated with Claude Code

claude bot and others added 2 commits August 12, 2025 22:57
- Add system_prompt field to ChatConfig in config structure
- Implement 'infer config set-system' command for setting system prompts
- Update chat service to include system prompt in API messages
- Modify service container to pass system prompt to chat service
- Update documentation with new command and configuration examples

The system prompt is now configurable via command or by modifying the
config directly and is included in SDK messages as a system prompt.

Co-authored-by: Eden Reich <[email protected]>
@edenreich edenreich merged commit bf4a5ff into main Aug 12, 2025
1 check passed
@edenreich edenreich deleted the claude/issue-25-20250812-2252 branch August 12, 2025 23:04
ig-semantic-release-bot bot pushed a commit that referenced this pull request Aug 12, 2025
## [0.10.0](v0.9.0...v0.10.0) (2025-08-12)

### 🚀 Features

* Add system prompt configuration support ([#26](#26)) ([bf4a5ff](bf4a5ff)), closes [#25](#25) [#25](#25)
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add system prompt to config

2 participants