Skip to content

Commit 8d2586b

Browse files
committed
[owl] Bug fix: ELLM provider accepts OpenAI hosted tools (#843)
1 parent 0e45c5d commit 8d2586b

File tree

1 file changed

+2
-0
lines changed
  • services/api/src/owl/utils

1 file changed

+2
-0
lines changed

services/api/src/owl/utils/lm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ def _prepare_hyperparams(
489489
hyperparams.pop("stop", None)
490490
else:
491491
hyperparams["max_completion_tokens"] = hyperparams.pop("max_tokens", None)
492+
elif ctx.inference_provider == CloudProvider.ELLM:
493+
pass
492494
else:
493495
tools = [t for t in tools if t.get("type", "") not in OPENAI_HOSTED_TOOLS]
494496

0 commit comments

Comments
 (0)