From 135fadf50f03bd3f60b7d79c012bf32a3f8776a1 Mon Sep 17 00:00:00 2001 From: Niels Ringler Date: Mon, 23 Feb 2026 14:41:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Change=20deployment=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/datastructures.py | 6 +++++- src/llm.py | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/datastructures.py b/src/datastructures.py index de54a37..13e0305 100644 --- a/src/datastructures.py +++ b/src/datastructures.py @@ -31,4 +31,8 @@ class CheckResponse(BaseModel): class OpenAiModel(Enum): - gpt51= "BR-GPT-5.1-2025-11-13-SecondOpinion-WebDemo" + gpt51 = ("GPT-5.1", "BR-GPT-5.1-2025-11-13-Misc") + + def __init__(self, public_name, deployment): + self._value_ = public_name + self.deployment = deployment diff --git a/src/llm.py b/src/llm.py index 1de767f..451781c 100644 --- a/src/llm.py +++ b/src/llm.py @@ -152,7 +152,7 @@ def call_openai(client, prompt: str, messages: List[dict], model: OpenAiModel = try: completion = client.chat.completions.create( - model=model.value, + model=model.deployment, messages=messages, stream=True, temperature=0 @@ -186,7 +186,7 @@ def call_openai_lin(client, prompt: str, messages: List[dict], model: OpenAiMode ) completion = client.chat.completions.create( - model=model.value, + model=model.deployment, messages=messages, stream=False, temperature=0