Skip to content

Commit

Permalink
Make logging requests/responses of LLM queries more human-readable fo…
Browse files Browse the repository at this point in the history
…r now
  • Loading branch information
zimmski committed Apr 3, 2024
1 parent 22e46e8 commit 87af3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/llm/llm.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (m *llm) GenerateTestsForFile(language language.Language, repositoryPath st
if err != nil {
return err
}
log.Printf("Model %q responded to query %q with: %q", m.ID(), request, response)
log.Printf("Model %q responded to query %s with: %s", m.ID(), string(bytesutil.PrefixLines([]byte(request), []byte("\t"))), string(bytesutil.PrefixLines([]byte(response), []byte("\t"))))

testContent := prompt.ParseResponse(response)

Expand Down

0 comments on commit 87af3c5

Please sign in to comment.