File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -174,19 +174,22 @@ Examples:
174
174
175
175
``` scala
176
176
val createChatCompletionSettings = CreateChatCompletionSettings (
177
- model = ModelId .gpt_3_5_turbo_0301
177
+ model = ModelId .gpt_3_5_turbo
178
178
)
179
179
180
180
val messages : Seq [MessageSpec ] = Seq (
181
181
MessageSpec (role = ChatRole .System , content = " You are a helpful assistant." ),
182
182
MessageSpec (role = ChatRole .User , content = " Who won the world series in 2020?" ),
183
183
MessageSpec (role = ChatRole .Assistant , content = " The Los Angeles Dodgers won the World Series in 2020." ),
184
184
MessageSpec (role = ChatRole .User , content = " Where was it played" ),
185
- )
185
+ )
186
186
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
+ }
190
193
```
191
194
192
195
## FAQ 🤔
You can’t perform that action at this time.
0 commit comments