File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ You can provide typesafe request parameters like so:
443443
444444``` ruby
445445openai.chat.completions.create(
446- messages: [OpenAI ::Chat ::ChatCompletionUserMessageParam .new (role: " user " , content: " Say this is a test" )],
446+ messages: [OpenAI ::Chat ::ChatCompletionUserMessageParam .new (content: " Say this is a test" )],
447447 model: :"gpt-4.1"
448448)
449449```
@@ -459,7 +459,7 @@ openai.chat.completions.create(
459459
460460# You can also splat a full Params class:
461461params = OpenAI ::Chat ::CompletionCreateParams .new (
462- messages: [OpenAI ::Chat ::ChatCompletionUserMessageParam .new (role: " user " , content: " Say this is a test" )],
462+ messages: [OpenAI ::Chat ::ChatCompletionUserMessageParam .new (content: " Say this is a test" )],
463463 model: :"gpt-4.1"
464464)
465465openai.chat.completions.create(** params)
You can’t perform that action at this time.
0 commit comments