Skip to content

Commit dc0fbe0

Browse files
authored
Merge pull request #775 from NVIDIA/fix/colang-2/flow-continuation-prompt
Fix/colang 2/flow continuation prompt
2 parents f6e9f9a + ab0aa0f commit dc0fbe0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

nemoguardrails/llm/prompts/llama3.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ prompts:
316316
messages:
317317
- type: system
318318
content: "Directly response with expected answer. Don't provide any pre- or post-explanations."
319-
- type: user
319+
320+
- type: system
320321
content: |-
321322
{{ flow_nld }}

nemoguardrails/llm/prompts/openai-chatgpt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ prompts:
222222
content: "This is the current conversation between the user and the bot:"
223223
- "{{ history | colang | to_messages_v2}}"
224224

225-
- type: assistant
225+
- type: system
226226
content: |
227227
Follow these instruction `{{ instructions }}` to generate a value that is assigned to:
228228
${{ var_name }} =
@@ -303,6 +303,6 @@ prompts:
303303
- openai/gpt-3.5-turbo
304304
- openai/gpt-4
305305
messages:
306-
- type: user
306+
- type: system
307307
content: |-
308308
{{ flow_nld }}

tests/v2_x/test_state_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def test_serialization():
119119
avg_time += took
120120
avg_time /= number_of_runs
121121

122-
assert avg_time < 0.1
122+
assert avg_time < 0.2
123123

124124
assert isinstance(s, str)
125125

0 commit comments

Comments
 (0)