Skip to content

Commit 801e9c2

Browse files
fix(internal): tests should use normalized property names
1 parent fb53071 commit 801e9c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ You can provide typesafe request parameters like so:
443443

444444
```ruby
445445
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")],
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:
461461
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")],
463463
model: :"gpt-4.1"
464464
)
465465
openai.chat.completions.create(**params)

0 commit comments

Comments
 (0)