mirror of
				https://github.com/xiaoyiweb/YiAi.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	改个bug
This commit is contained in:
		@@ -164,6 +164,19 @@ defineExpose({ textRef })
 | 
			
		||||
            style="margin-top: 0.5rem"
 | 
			
		||||
            v-if="imageUrl && isImageUrl"
 | 
			
		||||
          />
 | 
			
		||||
          <a
 | 
			
		||||
            :href="imageUrl"
 | 
			
		||||
            target="_blank"
 | 
			
		||||
            :class="{ 'file-2': isMobile, 'file-1': !isMobile }"
 | 
			
		||||
          >
 | 
			
		||||
            <img
 | 
			
		||||
              src="@/assets/file.jpeg"
 | 
			
		||||
              alt="文件"
 | 
			
		||||
              class="h-auto rounded-md mb-1"
 | 
			
		||||
              :class="{ 'file-2': isMobile, 'file-1': !isMobile }"
 | 
			
		||||
              v-if="imageUrl && !isImageUrl"
 | 
			
		||||
            />
 | 
			
		||||
          </a>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -260,7 +260,7 @@ export class ChatgptService implements OnModuleInit {
 | 
			
		||||
            userId: req.user.id,
 | 
			
		||||
            type: DeductionKey.CHAT_TYPE,
 | 
			
		||||
            prompt,
 | 
			
		||||
            imageUrl:response?.imageUrl,
 | 
			
		||||
            imageUrl:imageUrl,
 | 
			
		||||
            activeModel,
 | 
			
		||||
            answer: '',
 | 
			
		||||
            promptTokens: prompt_tokens,
 | 
			
		||||
@@ -408,7 +408,7 @@ export class ChatgptService implements OnModuleInit {
 | 
			
		||||
          role: 'assistant',
 | 
			
		||||
          name: undefined,
 | 
			
		||||
          usage: response?.usage,
 | 
			
		||||
          imageUrl: response?.imageUrl,
 | 
			
		||||
          imageUrl: imageUrl,
 | 
			
		||||
          parentMessageId: userMessageData.id,
 | 
			
		||||
          conversationId: response?.conversationId,
 | 
			
		||||
        };
 | 
			
		||||
@@ -462,7 +462,7 @@ export class ChatgptService implements OnModuleInit {
 | 
			
		||||
        userId: req.user.id,
 | 
			
		||||
        type: DeductionKey.CHAT_TYPE,
 | 
			
		||||
        prompt,
 | 
			
		||||
        imageUrl: response?.imageUrl,
 | 
			
		||||
        imageUrl,
 | 
			
		||||
        activeModel,
 | 
			
		||||
        answer: '',
 | 
			
		||||
        promptTokens: prompt_tokens,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user