Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.2
Expand Down Expand Up @@ -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.2
Expand Down
Loading