You've already forked grok
whoopsie-doopsie
This commit is contained in:
2
main.go
2
main.go
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user