Skip to content

Commit

Permalink
ollama undo instrument (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 authored Sep 17, 2024
1 parent 1ef969e commit 51433d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentops/llms/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def override(self):
self._override_chat_async_client()

def undo_override(self):
if original_func is not None:
if original_func is not None and original_func != {}:
import ollama

ollama.chat = original_func["ollama.chat"]
Expand Down

0 comments on commit 51433d9

Please sign in to comment.