You've already forked grok
Compare commits
1 Commits
d3c9a7984c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| cf7bab2923 |
2
main.go
2
main.go
@@ -51,6 +51,7 @@ func (p *OpenAIPrompter) Prompt(ctx context.Context, req PromptRequest) (*Highly
|
|||||||
Content: responses.EasyInputMessageContentUnionParam{
|
Content: responses.EasyInputMessageContentUnionParam{
|
||||||
OfString: openai.String(sysPrompt),
|
OfString: openai.String(sysPrompt),
|
||||||
},
|
},
|
||||||
|
Role: responses.EasyInputMessageRoleSystem,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -64,7 +65,6 @@ func (p *OpenAIPrompter) Prompt(ctx context.Context, req PromptRequest) (*Highly
|
|||||||
}
|
}
|
||||||
|
|
||||||
resp, err := p.cli.Responses.New(ctx, responses.ResponseNewParams{
|
resp, err := p.cli.Responses.New(ctx, responses.ResponseNewParams{
|
||||||
Instructions: openai.String(p.cfg.SystemPrompt),
|
|
||||||
Input: responses.ResponseNewParamsInputUnion{
|
Input: responses.ResponseNewParamsInputUnion{
|
||||||
OfInputItemList: input,
|
OfInputItemList: input,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user