mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Add realtime start instructions config override (#14270)
- add `realtime_start_instructions` config support - thread it into realtime context updates, schema, docs, and tests
This commit is contained in:
1 parent
31bf1dbe63
commit
39c1bc1c68
7 files changed
+134
-3
No files matched your search
@@ -520,9 +520,12 @@ impl DeveloperInstructions {
|
||||
}
|
||||
|
||||
pub fn realtime_start_message() -> Self {
|
||||
Self::realtime_start_message_with_instructions(REALTIME_START_INSTRUCTIONS.trim())
|
||||
}
|
||||
|
||||
pub fn realtime_start_message_with_instructions(instructions: &str) -> Self {
|
||||
DeveloperInstructions::new(format!(
|
||||
"{REALTIME_CONVERSATION_OPEN_TAG}\n{}\n{REALTIME_CONVERSATION_CLOSE_TAG}",
|
||||
REALTIME_START_INSTRUCTIONS.trim()
|
||||
"{REALTIME_CONVERSATION_OPEN_TAG}\n{instructions}\n{REALTIME_CONVERSATION_CLOSE_TAG}"
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user