You've already forked grok
enable reasoning
This commit is contained in:
4
main.go
4
main.go
@@ -15,6 +15,7 @@ import (
|
|||||||
"github.com/openai/openai-go/v3"
|
"github.com/openai/openai-go/v3"
|
||||||
"github.com/openai/openai-go/v3/option"
|
"github.com/openai/openai-go/v3/option"
|
||||||
"github.com/openai/openai-go/v3/responses"
|
"github.com/openai/openai-go/v3/responses"
|
||||||
|
"github.com/openai/openai-go/v3/shared"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OpenAIPrompter struct {
|
type OpenAIPrompter struct {
|
||||||
@@ -27,6 +28,9 @@ func (p *OpenAIPrompter) Prompt(ctx context.Context, question string) (*HighlyTr
|
|||||||
Input: responses.ResponseNewParamsInputUnion{
|
Input: responses.ResponseNewParamsInputUnion{
|
||||||
OfString: openai.String(question),
|
OfString: openai.String(question),
|
||||||
},
|
},
|
||||||
|
Reasoning: shared.ReasoningParam{
|
||||||
|
Effort: shared.ReasoningEffortXhigh,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user