Skip to content

Commit

Permalink
chore: merge code
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed May 14, 2024
1 parent 9090954 commit 6d655d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
3 changes: 2 additions & 1 deletion service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export async function initApi(key: KeyConfig, chatModel: string, maxContextCount
}
const processThreads: { userId: string; abort: AbortController; messageId: string }[] = []
async function chatReplyProcess(options: RequestOptions) {
console.log('options', options)
const model = options.room.chatModel
const key = await getRandomApiKey(options.user, model, options.room.accountId)
const userId = options.user._id.toString()
Expand Down Expand Up @@ -415,7 +416,7 @@ async function getMessageById(id: string): Promise<ChatMessage | undefined> {
url: string
}
}[] = chatInfo.prompt
if (chatInfo.images) {
if (chatInfo.images && chatInfo.images.length > 0) {
content = [
{
type: 'text',
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/GitHubSite/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const releaseVersion = import.meta.env.VITE_RELEASE_VERSION || 'v0.0.0'
<span class="text-neutral-400">
Powered by
</span>
<a href="https://chatgpt-web.dev" target="_blank">
<a href="https://github.com/jamebal/chatgpt-web" target="_blank">
<span class="text-blue-500">
chatgpt-web
</span>
Expand Down
14 changes: 0 additions & 14 deletions src/components/common/Setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@ const show = computed({
</template>
<ChatRecord />
</NTabPane>
<NTabPane v-if="userStore.userInfo.root" name="UserConfig" tab="UserConfig">
<template #tab>
<SvgIcon class="text-lg" icon="ri-user-5-line" />
<span class="ml-2">{{ $t('setting.userConfig') }}</span>
</template>
<User />
</NTabPane>
<NTabPane v-if="userStore.userInfo.root" name="KeysConfig" tab="KeysConfig">
<template #tab>
<SvgIcon class="text-lg" icon="ri-key-2-line" />
Expand Down Expand Up @@ -157,13 +150,6 @@ const show = computed({
</template>
<User />
</NTabPane>
<NTabPane v-if="userStore.userInfo.root" name="KeysConfig" tab="KeysConfig">
<template #tab>
<SvgIcon class="text-lg" icon="ri-key-2-line" />
<span class="ml-2">{{ $t('setting.keysConfig') }}</span>
</template>
<Key />
</NTabPane>
<NTabPane v-if="userStore.userInfo.root" name="GiftCardConfig" tab="GiftCardConfig">
<template #tab>
<SvgIcon class="text-lg" icon="mdi-gift" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ onUnmounted(() => {
<div class="flex items-center space-x-2">
<div>
<NUpload
:disabled="!isVisionModel"
:disabled="true"
action="/api/upload-image"
list-type="image"
class="flex items-center justify-center h-10 transition hover:bg-neutral-100 dark:hover:bg-[#414755]"
Expand Down

0 comments on commit 6d655d5

Please sign in to comment.