Skip to content

Commit

Permalink
nit: remove special case for llama model
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Jan 18, 2025
1 parent fd880fa commit 5b86a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docetl/operations/utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def _call_llm_with_cache(
len(props) == 1
and list(props.values())[0].get("type") == "string"
and scratchpad is None
and ("ollama" in model or "sagemaker" in model)
and ("sagemaker" in model)
):
use_tools = False

Expand Down Expand Up @@ -698,7 +698,7 @@ def _parse_llm_response_helper(
if key not in output_dict:
output_dict[key] = "Not found"

if "ollama" in response.model:
if "ollama" in response.model or "sagemaker" in response.model:
for key, value in output_dict.items():
if not isinstance(value, str):
continue
Expand Down

0 comments on commit 5b86a58

Please sign in to comment.