Skip to content
Merged
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
5 changes: 4 additions & 1 deletion internal/api/chat/create_conversation_message_stream_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ func (s *ChatServerV2) prepare(ctx context.Context, projectId string, conversati
}

var latexFullSource string
var projectInstructions string = ""
switch conversationType {
case chatv2.ConversationType_CONVERSATION_TYPE_DEBUG:
latexFullSource = "latex_full_source is not available in debug mode"
Expand All @@ -207,6 +208,8 @@ func (s *ChatServerV2) prepare(ctx context.Context, projectId string, conversati
if err != nil {
return ctx, nil, nil, err
}

projectInstructions = project.Instructions
}

var conversation *models.Conversation
Expand All @@ -217,7 +220,7 @@ func (s *ChatServerV2) prepare(ctx context.Context, projectId string, conversati
actor.ID,
projectId,
latexFullSource,
project.Instructions,
projectInstructions,
userInstructions,
userMessage,
userSelectedText,
Expand Down