|
@@ -35,7 +35,7 @@
|
|
<div class="user-profile-bar">
|
|
<div class="user-profile-bar">
|
|
<div class="logo">
|
|
<div class="logo">
|
|
<img
|
|
<img
|
|
- src="../assets/logoa.png"
|
|
|
|
|
|
+ src="../assets/logo.png"
|
|
alt="logo"
|
|
alt="logo"
|
|
class="logo-img"
|
|
class="logo-img"
|
|
/>
|
|
/>
|
|
@@ -1880,6 +1880,7 @@ const summaryHtml=ref('')
|
|
model_type: selectedModelInfo.value.type,
|
|
model_type: selectedModelInfo.value.type,
|
|
model_name: selectedModelInfo.value.name
|
|
model_name: selectedModelInfo.value.name
|
|
}; */
|
|
}; */
|
|
|
|
+
|
|
const apiEndpoint = enableWebSearch.value
|
|
const apiEndpoint = enableWebSearch.value
|
|
? `${import.meta.env.VITE_BASE_AI_API}/api/chat/web-search-llm/`
|
|
? `${import.meta.env.VITE_BASE_AI_API}/api/chat/web-search-llm/`
|
|
: `${import.meta.env.VITE_BASE_AI_API}/api/chat/online/multimodal`;
|
|
: `${import.meta.env.VITE_BASE_AI_API}/api/chat/online/multimodal`;
|
|
@@ -2763,7 +2764,7 @@ const updateCollapsedState = () => {
|
|
// 添加计算属性获取选中的模型信息
|
|
// 添加计算属性获取选中的模型信息
|
|
const selectedModelInfo = computed(() => {
|
|
const selectedModelInfo = computed(() => {
|
|
if (!selectedModel.value || !models.value.length) return { type: '', name: '' };
|
|
if (!selectedModel.value || !models.value.length) return { type: '', name: '' };
|
|
- const model = models.value.find(m => m.id === selectedModel.value);
|
|
|
|
|
|
+ const model = models.value.find(m => m.id == selectedModel.value);
|
|
return {
|
|
return {
|
|
type: model?.type || '',
|
|
type: model?.type || '',
|
|
name: model?.name || ''
|
|
name: model?.name || ''
|
|
@@ -2797,7 +2798,9 @@ const updateCollapsedState = () => {
|
|
|
|
|
|
// 添加模型选择改变的处理方法
|
|
// 添加模型选择改变的处理方法
|
|
const handleModelChange = (modelId) => {
|
|
const handleModelChange = (modelId) => {
|
|
|
|
+
|
|
selectedModel.value = modelId;
|
|
selectedModel.value = modelId;
|
|
|
|
+ console.log(selectedModel.value);
|
|
};
|
|
};
|
|
// 用户信息
|
|
// 用户信息
|
|
const userInfo = ref({
|
|
const userInfo = ref({
|