Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Oct 2, 2024
1 parent e1a684d commit b2eef10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/contrib/langchain/test_langchain_llmobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _invoke_llm(cls, llm, prompt, mock_tracer, cassette_name):
llm(prompt)
else:
llm.invoke(prompt)
else: # streams do not use casettes
else: # streams do not use casettes
for _ in llm.stream(prompt):
pass
LLMObs.disable()
Expand All @@ -116,7 +116,7 @@ def _invoke_chat(cls, chat_model, prompt, mock_tracer, cassette_name, role="user
chat_model(messages)
else:
chat_model.invoke(messages)
else: # streams do not use casettes
else: # streams do not use casettes
for _ in chat_model.stream(prompt):
pass
LLMObs.disable()
Expand All @@ -134,7 +134,7 @@ def _invoke_chain(cls, chain, prompt, mock_tracer, cassette_name, batch=False):
else:
chain.invoke(prompt)

else: # streams do not use casettes
else: # streams do not use casettes
for _ in chain.stream(prompt):
pass
LLMObs.disable()
Expand Down

0 comments on commit b2eef10

Please sign in to comment.