Skip to content

Commit c480989

Browse files
clean up
1 parent 5f5ecb8 commit c480989

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apps/web/client/src/components/store/editor/chat/conversation.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ export class ConversationManager {
128128
}
129129

130130
async addConversationTitle(conversationId: string, content: string) {
131-
const title = "RANDOM TITLE";
131+
const title = await api.chat.conversation.generateTitle.mutate({
132+
conversationId,
133+
content,
134+
});
132135
if (!title) {
133136
console.error('Error generating conversation title');
134137
return;

apps/web/client/src/server/api/routers/project/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const projectRouter = createTRPCRouter({
9292

9393
const useCompressed = !!compressedImage.buffer;
9494
const finalMimeType = useCompressed ? 'image/jpeg' : mimeType;
95-
const finalBuffer = useCompressed ? compressedImage.buffer : buffer;
95+
const finalBuffer = useCompressed ? (compressedImage.buffer ?? buffer) : buffer;
9696

9797
const path = getScreenshotPath(project.id, finalMimeType);
9898

0 commit comments

Comments
 (0)