Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go/ai/request_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func NewModelMessage(parts ...*Part) *Message {
return NewMessage(RoleModel, nil, parts...)
}

// NewUserTextMessage creates a new Message with role "model" and content with
// NewModelTextMessage creates a new Message with role "model" and content with
// a single text part with the content of provided text.
func NewModelTextMessage(text string) *Message {
return NewTextMessage(RoleModel, text)
Expand All @@ -63,7 +63,7 @@ func NewSystemMessage(parts ...*Part) *Message {
return NewMessage(RoleSystem, nil, parts...)
}

// NewUserTextMessage creates a new Message with role "system" and content with
// NewSystemTextMessage creates a new Message with role "system" and content with
// a single text part with the content of provided text.
func NewSystemTextMessage(text string) *Message {
return NewTextMessage(RoleSystem, text)
Expand Down