We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955076e commit 30856b7Copy full SHA for 30856b7
tests/runnable_rails/test_runnable_rails.py
@@ -327,7 +327,9 @@ def test_string_passthrough_mode_on_with_dialog_rails():
327
info = model_with_rails.rails.explain()
328
assert len(info.llm_calls) == 2
329
330
- assert info.llm_calls[1].prompt == "The capital of France is "
+ # In passthrough mode with dialog rails, the second call should use the message format
331
+ # since RunnableRails converts StringPromptValue to message list, which gets formatted as "Human: ..."
332
+ assert info.llm_calls[1].prompt == "Human: The capital of France is "
333
assert result == "Paris."
334
335
0 commit comments