This commit is contained in:
2026-06-10 07:55:16 +08:00
parent 821eca9f0c
commit aaac7e9d98
31 changed files with 548 additions and 149 deletions
+3 -2
View File
@@ -108,7 +108,8 @@ import { useChatStore } from '@/stores/chat'
import MessageBubble from './components/MessageBubble.vue'
import AttachmentUploader from './components/AttachmentUploader.vue'
import ConversationCreateModal from './ConversationCreateModal.vue'
import { llmAdminApi, type LLMModel, type ModelCapabilities } from '@/api/llmAdmin'
import { modelsApi } from '@/api/models'
import type { LLMModel, ModelCapabilities } from '@/api/llmAdmin'
const chat = useChatStore()
const route = useRoute()
@@ -142,7 +143,7 @@ const currentModelCaps = computed<ModelCapabilities>(() => {
})
onMounted(async () => {
allModels.value = await llmAdminApi.listModels(true)
allModels.value = await modelsApi.list(true)
await chat.loadConversations({ project_id: projectId.value })
const cid = route.params.conversationId
if (typeof cid === 'string' && cid !== '') {
@@ -19,7 +19,8 @@
import { computed, onMounted, ref } from 'vue'
import { NSelect } from 'naive-ui'
import { llmAdminApi, type LLMModel } from '@/api/llmAdmin'
import { modelsApi } from '@/api/models'
import type { LLMModel } from '@/api/llmAdmin'
const props = defineProps<{ modelValue?: string }>()
const emit = defineEmits<{ 'update:modelValue': [v: string] }>()
@@ -27,7 +28,7 @@ const emit = defineEmits<{ 'update:modelValue': [v: string] }>()
const models = ref<LLMModel[]>([])
onMounted(async () => {
models.value = await llmAdminApi.listModels(true)
models.value = await modelsApi.list(true)
})
const options = computed(() =>