Skip to content

Commit

Permalink
llm: rm debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Dec 21, 2024
1 parent efd0c37 commit aeb8090
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions llm/service/custom_llm.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,6 @@ func (c *customSvc) generateRunbookTitleAndDescriptions(ctx context.Context, com
return nil, err
}

fmt.Println(buf.String())

prompt := openai.ChatCompletionMessage{
Role: openai.ChatMessageRoleSystem,
Content: buf.String(),
Expand Down Expand Up @@ -366,11 +364,6 @@ func (c *customSvc) generateRunbookTitleAndDescriptions(ctx context.Context, com
if len(msg) == 0 {
return nil, fmt.Errorf("Completion error: len(msg): %v\n", len(msg))
}
fmt.Println(string(msg))

if refusal := chatResponse.Choices[0].Message.Refusal; refusal != "" {
fmt.Println("Refusal:", refusal)
}

var runbook llm.Runbook
if err := json.Unmarshal([]byte(msg), &runbook); err != nil {
Expand Down

0 comments on commit aeb8090

Please sign in to comment.