Skip to content

Commit ff39e84

Browse files
committed
README - formatting a new code example + changing the model used to gpt_3_5_turbo (reads better)
1 parent 49a16be commit ff39e84

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,22 @@ Examples:
174174

175175
```scala
176176
val createChatCompletionSettings = CreateChatCompletionSettings(
177-
model = ModelId.gpt_3_5_turbo_0301
177+
model = ModelId.gpt_3_5_turbo
178178
)
179179

180180
val messages: Seq[MessageSpec] = Seq(
181181
MessageSpec(role = ChatRole.System, content = "You are a helpful assistant."),
182182
MessageSpec(role = ChatRole.User, content = "Who won the world series in 2020?"),
183183
MessageSpec(role = ChatRole.Assistant, content = "The Los Angeles Dodgers won the World Series in 2020."),
184184
MessageSpec(role = ChatRole.User, content = "Where was it played"),
185-
)
185+
)
186186

187-
service.createChatCompletion(messages = messages, settings = createChatCompletionSettings).map { chatCompletion =>
188-
println(chatCompletion.choices.head.message.content)
189-
}
187+
service.createChatCompletion(
188+
messages = messages,
189+
settings = createChatCompletionSettings
190+
).map { chatCompletion =>
191+
println(chatCompletion.choices.head.message.content)
192+
}
190193
```
191194

192195
## FAQ 🤔

0 commit comments

Comments
 (0)