Skip to content

Commit ab3f844

Browse files
authored
chore: remove litellm type conversion (ogx-ai#193)
Summary: Moving this to litellm inference instead ogx-ai/ogx#1565 Test Plan: LLAMA_STACK_CONFIG=fireworks pytest -s -v tests/integration/agents/test_agents.py --safety-shield meta-llama/Llama-Guard-3-8B --text-model meta-llama/Llama-3.1-8B-Instruct
1 parent e7b19a5 commit ab3f844

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/llama_stack_client/lib/agents/client_tool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ def get_params_definition(self) -> Dict[str, Parameter]:
197197
params[name] = Parameter(
198198
name=name,
199199
description=param_doc or f"Parameter {name}",
200-
# Hack: litellm/openai expects "string" for str type
201-
parameter_type=type_hint.__name__ if type_hint.__name__ != "str" else "string",
200+
parameter_type=type_hint.__name__,
202201
default=(param.default if param.default != inspect.Parameter.empty else None),
203202
required=is_required,
204203
)

0 commit comments

Comments
 (0)