File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 373373 chatMessages .value .push (userMessage )
374374
375375 // 清空输入并滚动到底部
376- userInput .value = ' '
376+ userInput .value = ' '
377377
378378 setTimeout (() => {
379379 scrollToBottom ()
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
429431 } catch (error : any ) {
430432 isLoading .value = false
431433 isGenerating .value = false
432- processingStatus .value = ' '
434+ processingStatus .value = ' '
433435 return
434436 }
435437 }
Original file line number Diff line number Diff line change @@ -461,8 +461,14 @@ export async function generateImage(options: {
461461 * @returns Promise<string> 返回生成的图片URL
462462 */
463463export 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函数' )
You can’t perform that action at this time.
0 commit comments