You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/openai/server.py
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,8 @@ def main(
37
37
):
38
38
importuvicorn
39
39
40
-
ifendpoint:
41
-
sys.stderr.write(f"# WARNING: Unsure which model we're talking to, fetching its chat template from HuggingFace tokenizer of {template_hf_model_id_fallback}\n")
42
-
asserttemplate_hf_model_id_fallback, "template_hf_model_id_fallback is required when using an endpoint"
sys.stderr.write(f"# WARNING: Unsure which model we're talking to, fetching its chat template from HuggingFace tokenizer of {template_hf_model_id_fallback}\n")
59
+
asserttemplate_hf_model_id_fallbackorchat_template, "template_hf_model_id_fallback is required when using an endpoint without a model"
0 commit comments