Skip to content

Commit 1b322b4

Browse files
committed
Support default name for copilot-codex models
1 parent 5286146 commit 1b322b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llama_cpp/server/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ async def create_completion(
213213
assert len(body.prompt) <= 1
214214
body.prompt = body.prompt[0] if len(body.prompt) > 0 else ""
215215

216-
llama = llama_proxy(body.model)
216+
llama = llama_proxy(
217+
body.model
218+
if request.url.path != "/v1/engines/copilot-codex/completions"
219+
else "copilot-codex"
220+
)
217221

218222
exclude = {
219223
"n",

0 commit comments

Comments
 (0)