Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/HeyPuter/puter into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jelveh committed Aug 22, 2024
2 parents 6135054 + c08b897 commit 67e5219
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/src/modules/puterai/ClaudeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ClaudeService extends BaseService {
if ( whatis(message.content) !== 'array' ) {
message.content = [message.content];
}
if ( ! message.role ) message.role = 'user';
if ( message.role === 'user' && previous_was_user ) {
const last_msg = adapted_messages[adapted_messages.length-1];
last_msg.content.push(
Expand Down

0 comments on commit 67e5219

Please sign in to comment.