We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6090488 commit 764ac4fCopy full SHA for 764ac4f
1 file changed
tests/pytest/test_pydantic_agent.py
@@ -10,7 +10,10 @@
10
11
12
def agent_factory(config: RolloutProcessorConfig) -> Agent:
13
- model = OpenAIChatModel(config.completion_params["model"], provider="fireworks")
+ 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")
17
return Agent(model=model)
18
19
0 commit comments