File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,14 @@ def test_chat_completion_invalid_request_error_no_model(set_trace_info):
114114 set_trace_info ()
115115 add_custom_attribute ("llm.conversation_id" , "my-awesome-id" )
116116 with WithLlmCustomAttributes ({"context" : "attr" }):
117- generator = openai .ChatCompletion .create (
118- # no model provided,
119- messages = _test_openai_chat_completion_messages ,
120- temperature = 0.7 ,
121- max_tokens = 100 ,
122- stream = True ,
123- )
124117 with pytest .raises (openai .InvalidRequestError ):
118+ generator = openai .ChatCompletion .create (
119+ # no model provided,
120+ messages = _test_openai_chat_completion_messages ,
121+ temperature = 0.7 ,
122+ max_tokens = 100 ,
123+ stream = True ,
124+ )
125125 for resp in generator :
126126 assert resp
127127
You can’t perform that action at this time.
0 commit comments