Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjeff5 committed Jun 14, 2024
1 parent 61d4998 commit e6415a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/plugins/ollama/ollama.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (g *generator) generate(ctx context.Context, input *ai.GenerateRequest, cb
// Step 1: Combine parts from all messages into a single payload slice
var messages []*ollamaMessage

// Add all messages to history field.
// TODO: Handle system prompt.

// Translate all messages to ollama message format.
for _, m := range input.Messages {
message, err := convertParts(m.Role, m.Content)
if err != nil {
Expand Down

0 comments on commit e6415a5

Please sign in to comment.