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:
443
443
444
444
``` ruby
445
445
openai.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" )],
447
447
model: :"gpt-4.1"
448
448
)
449
449
```
@@ -459,7 +459,7 @@ openai.chat.completions.create(
459
459
460
460
# You can also splat a full Params class:
461
461
params = 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" )],
463
463
model: :"gpt-4.1"
464
464
)
465
465
openai.chat.completions.create(** params)
You can’t perform that action at this time.
0 commit comments