Skip to content

Commit f8b1b58

Browse files
fix: typo in OpenAiResponses name (#698)
1 parent 544977f commit f8b1b58

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/uipath_langchain/chat/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class LLMProvider(StrEnum):
1212
class APIFlavor(StrEnum):
1313
"""API flavor for LLM communication."""
1414

15-
OPENAI_RESPONSES = "OpenAIResponses"
15+
OPENAI_RESPONSES = "OpenAiResponses"
1616
OPENAI_COMPLETIONS = "OpenAiChatCompletions"
1717
AWS_BEDROCK_CONVERSE = "AwsBedrockConverse"
1818
AWS_BEDROCK_INVOKE = "AwsBedrockInvoke"

tests/chat/test_chat_model_factory.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_both_vendor_and_api_flavor_present_openai(self):
2020
model = {
2121
"modelName": "gpt-4",
2222
"vendor": "OpenAi",
23-
"apiFlavor": "OpenAIResponses",
23+
"apiFlavor": "OpenAiResponses",
2424
}
2525

2626
vendor, api_flavor = _compute_vendor_and_api_flavor(model)
@@ -57,11 +57,11 @@ def test_both_vendor_and_api_flavor_present_vertex(self):
5757
# ========== Only api_flavor present (vendor is null) ==========
5858

5959
def test_only_api_flavor_openai_responses(self):
60-
"""Test deriving vendor from OpenAIResponses api_flavor."""
60+
"""Test deriving vendor from OpenAiResponses api_flavor."""
6161
model = {
6262
"modelName": "gpt-4",
6363
"vendor": None,
64-
"apiFlavor": "OpenAIResponses",
64+
"apiFlavor": "OpenAiResponses",
6565
}
6666

6767
vendor, api_flavor = _compute_vendor_and_api_flavor(model)
@@ -138,7 +138,7 @@ def test_only_api_flavor_vendor_missing_key(self):
138138
"""Test when vendor key is missing entirely (not just None)."""
139139
model = {
140140
"modelName": "gpt-4",
141-
"apiFlavor": "OpenAIResponses",
141+
"apiFlavor": "OpenAiResponses",
142142
}
143143

144144
vendor, api_flavor = _compute_vendor_and_api_flavor(model)
@@ -286,7 +286,7 @@ def test_error_unknown_vendor_with_api_flavor(self):
286286
model = {
287287
"modelName": "some-model",
288288
"vendor": "UnknownVendor",
289-
"apiFlavor": "OpenAIResponses",
289+
"apiFlavor": "OpenAiResponses",
290290
}
291291

292292
with pytest.raises(ValueError) as exc_info:

0 commit comments

Comments
 (0)