Skip to content

Commit 6d655d5

Browse files
committed
chore: merge code
1 parent 9090954 commit 6d655d5

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

service/src/chatgpt/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export async function initApi(key: KeyConfig, chatModel: string, maxContextCount
115115
}
116116
const processThreads: { userId: string; abort: AbortController; messageId: string }[] = []
117117
async function chatReplyProcess(options: RequestOptions) {
118+
console.log('options', options)
118119
const model = options.room.chatModel
119120
const key = await getRandomApiKey(options.user, model, options.room.accountId)
120121
const userId = options.user._id.toString()
@@ -415,7 +416,7 @@ async function getMessageById(id: string): Promise<ChatMessage | undefined> {
415416
url: string
416417
}
417418
}[] = chatInfo.prompt
418-
if (chatInfo.images) {
419+
if (chatInfo.images && chatInfo.images.length > 0) {
419420
content = [
420421
{
421422
type: 'text',

src/components/common/GitHubSite/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const releaseVersion = import.meta.env.VITE_RELEASE_VERSION || 'v0.0.0'
88
<span class="text-neutral-400">
99
Powered by
1010
</span>
11-
<a href="https://chatgpt-web.dev" target="_blank">
11+
<a href="https://github.com/jamebal/chatgpt-web" target="_blank">
1212
<span class="text-blue-500">
1313
chatgpt-web
1414
</span>

src/components/common/Setting/index.vue

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,6 @@ const show = computed({
108108
</template>
109109
<ChatRecord />
110110
</NTabPane>
111-
<NTabPane v-if="userStore.userInfo.root" name="UserConfig" tab="UserConfig">
112-
<template #tab>
113-
<SvgIcon class="text-lg" icon="ri-user-5-line" />
114-
<span class="ml-2">{{ $t('setting.userConfig') }}</span>
115-
</template>
116-
<User />
117-
</NTabPane>
118111
<NTabPane v-if="userStore.userInfo.root" name="KeysConfig" tab="KeysConfig">
119112
<template #tab>
120113
<SvgIcon class="text-lg" icon="ri-key-2-line" />
@@ -157,13 +150,6 @@ const show = computed({
157150
</template>
158151
<User />
159152
</NTabPane>
160-
<NTabPane v-if="userStore.userInfo.root" name="KeysConfig" tab="KeysConfig">
161-
<template #tab>
162-
<SvgIcon class="text-lg" icon="ri-key-2-line" />
163-
<span class="ml-2">{{ $t('setting.keysConfig') }}</span>
164-
</template>
165-
<Key />
166-
</NTabPane>
167153
<NTabPane v-if="userStore.userInfo.root" name="GiftCardConfig" tab="GiftCardConfig">
168154
<template #tab>
169155
<SvgIcon class="text-lg" icon="mdi-gift" />

src/views/chat/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ onUnmounted(() => {
726726
<div class="flex items-center space-x-2">
727727
<div>
728728
<NUpload
729-
:disabled="!isVisionModel"
729+
:disabled="true"
730730
action="/api/upload-image"
731731
list-type="image"
732732
class="flex items-center justify-center h-10 transition hover:bg-neutral-100 dark:hover:bg-[#414755]"

0 commit comments

Comments
 (0)