Skip to content

Commit eac389e

Browse files
committed
Add high-effort reasoning parameter to response creation
1 parent 4edd6ce commit eac389e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/prompt/prompt.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/openai/openai-go/v3"
1919
"github.com/openai/openai-go/v3/packages/param"
2020
"github.com/openai/openai-go/v3/responses"
21+
"github.com/openai/openai-go/v3/shared"
2122
"golang.org/x/exp/constraints"
2223
)
2324

@@ -53,6 +54,9 @@ func Prompt(ctx context.Context, desktop desktoppkg.Desktop, text string) error
5354
params := responses.ResponseNewParams{
5455
Instructions: openai.String(computerInstructions),
5556
Model: model,
57+
Reasoning: responses.ReasoningParam{
58+
Effort: shared.ReasoningEffortXhigh,
59+
},
5660
Input: responses.ResponseNewParamsInputUnion{
5761
OfInputItemList: input,
5862
},

0 commit comments

Comments
 (0)