File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
openai-examples/src/main/scala/io/cequence/openaiscala/examples Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11package io .cequence .openaiscala .examples
22
33import 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
610import 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 )
Original file line number Diff line number Diff 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),
You can’t perform that action at this time.
0 commit comments