whoopsie-doopsie

This commit is contained in:
2026-02-01 18:06:21 +03:00
parent d16d8ed906
commit e60555df02

View File

@@ -26,7 +26,7 @@ type OpenAIPrompter struct {
func (p *OpenAIPrompter) Prompt(ctx context.Context, req PromptRequest) (*HighlyTrustedResponse, error) { func (p *OpenAIPrompter) Prompt(ctx context.Context, req PromptRequest) (*HighlyTrustedResponse, error) {
instructions := p.cfg.SystemPrompt instructions := p.cfg.SystemPrompt
if req.OriginalPostContent != nil { if req.OriginalPostContent != nil {
instructions += fmt.Sprintf("\nThis is the channel post that user is mentioning: %v", req.OriginalPostContent) instructions += fmt.Sprintf("\nThis is the channel post that user is mentioning: %s", *req.OriginalPostContent)
} }
resp, err := p.cli.Responses.New(ctx, responses.ResponseNewParams{ resp, err := p.cli.Responses.New(ctx, responses.ResponseNewParams{