@@ -128,10 +128,10 @@ def test_nonstreaming_chat_completion_no_prompts(
128128 client = OpenAI (api_key = "z" )
129129 client .chat .completions ._post = mock .Mock (
130130 return_value = nonstreaming_chat_completions_model_response (
131- response_id = "chatcmpl-test " ,
131+ response_id = "chat-id " ,
132132 response_model = "gpt-3.5-turbo" ,
133- message_content = "Test response" ,
134- created = 1234567890 ,
133+ message_content = "the model response" ,
134+ created = 10000000 ,
135135 )
136136 )
137137
@@ -237,10 +237,10 @@ def test_nonstreaming_chat_completion(
237237 client = OpenAI (api_key = "z" )
238238 client .chat .completions ._post = mock .Mock (
239239 return_value = nonstreaming_chat_completions_model_response (
240- response_id = "chatcmpl-test " ,
240+ response_id = "chat-id " ,
241241 response_model = "gpt-3.5-turbo" ,
242- message_content = "Test response" ,
243- created = 1234567890 ,
242+ message_content = "the model response" ,
243+ created = 10000000 ,
244244 )
245245 )
246246
@@ -328,10 +328,10 @@ async def test_nonstreaming_chat_completion_async_no_prompts(
328328 client = AsyncOpenAI (api_key = "z" )
329329 client .chat .completions ._post = mock .AsyncMock (
330330 return_value = nonstreaming_chat_completions_model_response (
331- response_id = "chatcmpl-test " ,
331+ response_id = "chat-id " ,
332332 response_model = "gpt-3.5-turbo" ,
333- message_content = "Test response" ,
334- created = 1234567890 ,
333+ message_content = "the model response" ,
334+ created = 10000000 ,
335335 )
336336 )
337337
@@ -435,10 +435,10 @@ async def test_nonstreaming_chat_completion_async(
435435 client = AsyncOpenAI (api_key = "z" )
436436 client .chat .completions ._post = AsyncMock (
437437 return_value = nonstreaming_chat_completions_model_response (
438- response_id = "chatcmpl-test " ,
438+ response_id = "chat-id " ,
439439 response_model = "gpt-3.5-turbo" ,
440- message_content = "Test response" ,
441- created = 1234567890 ,
440+ message_content = "the model response" ,
441+ created = 10000000 ,
442442 )
443443 )
444444
@@ -1888,10 +1888,10 @@ def test_span_origin_nonstreaming_chat(
18881888 client = OpenAI (api_key = "z" )
18891889 client .chat .completions ._post = mock .Mock (
18901890 return_value = nonstreaming_chat_completions_model_response (
1891- response_id = "chatcmpl-test " ,
1891+ response_id = "chat-id " ,
18921892 response_model = "gpt-3.5-turbo" ,
1893- message_content = "Test response" ,
1894- created = 1234567890 ,
1893+ message_content = "the model response" ,
1894+ created = 10000000 ,
18951895 )
18961896 )
18971897
@@ -1919,10 +1919,10 @@ async def test_span_origin_nonstreaming_chat_async(
19191919 client = AsyncOpenAI (api_key = "z" )
19201920 client .chat .completions ._post = AsyncMock (
19211921 return_value = nonstreaming_chat_completions_model_response (
1922- response_id = "chatcmpl-test " ,
1922+ response_id = "chat-id " ,
19231923 response_model = "gpt-3.5-turbo" ,
1924- message_content = "Test response" ,
1925- created = 1234567890 ,
1924+ message_content = "the model response" ,
1925+ created = 10000000 ,
19261926 )
19271927 )
19281928
@@ -3686,10 +3686,10 @@ def test_empty_tools_in_chat_completion(
36863686 client = OpenAI (api_key = "z" )
36873687 client .chat .completions ._post = mock .Mock (
36883688 return_value = nonstreaming_chat_completions_model_response (
3689- response_id = "chatcmpl-test " ,
3689+ response_id = "chat-id " ,
36903690 response_model = "gpt-3.5-turbo" ,
3691- message_content = "Test response" ,
3692- created = 1234567890 ,
3691+ message_content = "the model response" ,
3692+ created = 10000000 ,
36933693 )
36943694 )
36953695
@@ -3740,10 +3740,10 @@ def test_openai_message_role_mapping(
37403740 client = OpenAI (api_key = "z" )
37413741 client .chat .completions ._post = mock .Mock (
37423742 return_value = nonstreaming_chat_completions_model_response (
3743- response_id = "chatcmpl-test " ,
3743+ response_id = "chat-id " ,
37443744 response_model = "gpt-3.5-turbo" ,
3745- message_content = "Test response" ,
3746- created = 1234567890 ,
3745+ message_content = "the model response" ,
3746+ created = 10000000 ,
37473747 )
37483748 )
37493749
@@ -3780,10 +3780,10 @@ def test_openai_message_truncation(
37803780 client = OpenAI (api_key = "z" )
37813781 client .chat .completions ._post = mock .Mock (
37823782 return_value = nonstreaming_chat_completions_model_response (
3783- response_id = "chatcmpl-test " ,
3783+ response_id = "chat-id " ,
37843784 response_model = "gpt-3.5-turbo" ,
3785- message_content = "Test response" ,
3786- created = 1234567890 ,
3785+ message_content = "the model response" ,
3786+ created = 10000000 ,
37873787 )
37883788 )
37893789
0 commit comments