-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow
Generators
to run with a system prompt defined at run t…
…ime (#8423) * initial import * Update haystack/components/generators/openai.py Co-authored-by: Sebastian Husch Lee <[email protected]> * docs: fixing * supporting the three use cases: no system prompt, using system prompt defined at init, using system prompt defined at run time * renaming 'run_time_system_prompt' to 'system_prompt' * adding tests, converting methods to static --------- Co-authored-by: Sebastian Husch Lee <[email protected]>
- Loading branch information
1 parent
f6935d1
commit 3a50d35
Showing
2 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters