mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context This PR parallels work done in .NET for https://github.com/microsoft/semantic-kernel/pull/2671 and closes https://github.com/microsoft/semantic-kernel/issues/2722. This PR allows users to set the chat system message using the semantic function prompt template. ### Description * added new `chat_system_message` parameter to `complete_request_setttings` (defaults to None) and `chat_request_settings `(defults to "Assistant is a large language model.") * added handling of this new parameter to the `chat_prompt_template` * added corresponding tests * added a small helper function for deserializing prompt_configs - token selection biases need to be deserialized to ints, otherwise json loads deserializes the keys in the set to be strings. Unrelated * added missing __init__ file to the weaviate connector's directory ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄