@@ -48,7 +48,7 @@ def test_is_chat_model_with_gpt35_turbo_4k():
48
48
49
49
50
50
def test_is_chat_model_with_gpt35_turbo_16k ():
51
- with patch ("app.AZURE_OPENAI_MODEL_NAME" , "gpt-35-turbo-16k " ):
51
+ with patch ("app.AZURE_OPENAI_MODEL_NAME" , "gpt-35-turbo" ):
52
52
assert is_chat_model () is True
53
53
54
54
@@ -291,7 +291,7 @@ def test_stream_with_data_azure_success():
291
291
with patch ("requests.Session.post" ) as mock_post :
292
292
mock_response = MagicMock ()
293
293
mock_response .iter_lines .return_value = [
294
- b'data: {"id":"1","model":"gpt-35-turbo-16k ","created":1736397875,"object":"extensions.chat.completion.chunk","choices":[{"index":0,"delta":{"context":{"messages":[{"role":"tool","content":"hello","end_turn":false}]}},"end_turn":false,"finish_reason":"None"}]}'
294
+ b'data: {"id":"1","model":"gpt-35-turbo","created":1736397875,"object":"extensions.chat.completion.chunk","choices":[{"index":0,"delta":{"context":{"messages":[{"role":"tool","content":"hello","end_turn":false}]}},"end_turn":false,"finish_reason":"None"}]}'
295
295
]
296
296
mock_response .headers = {"apim-request-id" : "test-request-id" }
297
297
mock_post .return_value .__enter__ .return_value = mock_response
@@ -381,7 +381,7 @@ def test_stream_with_data_azure_error():
381
381
# body = mock_body
382
382
mock_response = MagicMock ()
383
383
mock_response .iter_lines .return_value = [
384
- b'data: {"id":"1","model":"gpt-35-turbo-16k ","created":1736397875,"object":"extensions.chat.completion.chunk","choices":[{"index":0,"delta":{"context":{"messages":[{"role":"tool","content":"hello","end_turn":false}]}},"end_turn":false,"finish_reason":"None"}]}'
384
+ b'data: {"id":"1","model":"gpt-35-turbo","created":1736397875,"object":"extensions.chat.completion.chunk","choices":[{"index":0,"delta":{"context":{"messages":[{"role":"tool","content":"hello","end_turn":false}]}},"end_turn":false,"finish_reason":"None"}]}'
385
385
]
386
386
mock_response .headers = {"apim-request-id" : "test-request-id" }
387
387
mock_post .return_value .__enter__ .return_value = mock_response
0 commit comments