You've already forked grok
explicitly mark SYSTEM МЕССЕДЖ AS СИСТЕМ
This commit is contained in:
2
main.go
2
main.go
@@ -51,6 +51,7 @@ func (p *OpenAIPrompter) Prompt(ctx context.Context, req PromptRequest) (*Highly
|
||||
Content: responses.EasyInputMessageContentUnionParam{
|
||||
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{
|
||||
Instructions: openai.String(p.cfg.SystemPrompt),
|
||||
Input: responses.ResponseNewParamsInputUnion{
|
||||
OfInputItemList: input,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user