Skip to content

Commit 764ac4f

Browse files
committed
update test
1 parent 6090488 commit 764ac4f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/pytest/test_pydantic_agent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111

1212
def agent_factory(config: RolloutProcessorConfig) -> Agent:
13-
model = OpenAIChatModel(config.completion_params["model"], provider="fireworks")
13+
model_name = config.completion_params["model"]
14+
if model_name.startswith("fireworks_ai/"):
15+
model_name = model_name[len("fireworks_ai/") :]
16+
model = OpenAIChatModel(model_name, provider="fireworks")
1417
return Agent(model=model)
1518

1619

0 commit comments

Comments
 (0)