mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-17 08:46:38 +08:00
改个bug
This commit is contained in:
parent
2ca3c164a0
commit
b2de61c353
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user