Skip to content

Commit b0dc52b

Browse files
committed
reformat
2 parents ea5c480 + a9fb7ca commit b0dc52b

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/components/assistant/Sidebar.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
chatMessages.value.push(userMessage)
374374
375375
// 清空输入并滚动到底部
376-
userInput.value = ''
376+
userInput.value = ''
377377
378378
setTimeout(() => {
379379
scrollToBottom()
@@ -409,7 +409,9 @@
409409
// 图片加载成功后,添加带图片的消息
410410
const assistantMessage = {
411411
role: 'assistant' as const,
412-
content: serverMode.value ? '已为您编辑图片' : '已为您编辑图片,点击LoadImage节点可以直接应用。',
412+
content: serverMode.value
413+
? '已为您编辑图片'
414+
: '已为您编辑图片,点击LoadImage节点可以直接应用。',
413415
time: getCurrentTime(),
414416
hasImage: true,
415417
image: imageUrl
@@ -429,7 +431,7 @@
429431
} catch (error: any) {
430432
isLoading.value = false
431433
isGenerating.value = false
432-
processingStatus.value = ''
434+
processingStatus.value = ''
433435
return
434436
}
435437
}

src/components/assistant/util.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,14 @@ export async function generateImage(options: {
461461
* @returns Promise<string> 返回生成的图片URL
462462
*/
463463
export async function handleImageWithKontextPro(
464+
<<<<<<< HEAD
464465
prompt: string,
465466
imageBase64: string,
467+
=======
468+
prompt: string,
469+
imageBase64: string,
470+
signal?: AbortSignal,
471+
>>>>>>> a9fb7ca663cf4b7f956d7067273cc04852317d9f
466472
options: Record<string, any> = {}
467473
) {
468474
console.log('进入handleImageWithKontextPro函数')

0 commit comments

Comments
 (0)