Skip to content

Commit 7a46e98

Browse files
committed
Examples / tests with GPT 5.1
1 parent 20f9ddd commit 7a46e98

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

openai-examples/src/main/scala/io/cequence/openaiscala/examples/CreateChatCompletion.scala

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package io.cequence.openaiscala.examples
22

33
import io.cequence.openaiscala.domain._
4-
import io.cequence.openaiscala.domain.settings.{CreateChatCompletionSettings, ServiceTier}
4+
import io.cequence.openaiscala.domain.settings.{
5+
CreateChatCompletionSettings,
6+
ReasoningEffort,
7+
ServiceTier
8+
}
59

610
import scala.concurrent.Future
711

@@ -17,10 +21,11 @@ object CreateChatCompletion extends Example {
1721
.createChatCompletion(
1822
messages = messages,
1923
settings = CreateChatCompletionSettings(
20-
model = ModelId.o3,
24+
model = ModelId.gpt_5_1,
2125
max_tokens = Some(1000),
2226
temperature = Some(0.1),
2327
service_tier = Some(ServiceTier.auto),
28+
reasoning_effort = Some(ReasoningEffort.none),
2429
metadata = Map()
2530
)
2631
)

openai-examples/src/main/scala/io/cequence/openaiscala/examples/CreateChatCompletionJsonAdapter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object CreateChatCompletionJsonAdapter
2828
.createChatCompletionWithJSON[JsObject](
2929
messages = messages,
3030
settings = CreateChatCompletionSettings(
31-
model = ModelId.gpt_5_mini,
31+
model = ModelId.gpt_5_1,
3232
max_tokens = Some(20000),
3333
temperature = Some(0.5), // ignored
3434
reasoning_effort = Some(ReasoningEffort.medium),

0 commit comments

Comments
 (0)