fix openai provider test error

This commit is contained in:
duanfuxiang 2025-06-12 20:44:22 +08:00
parent f1f8ce80fc
commit 540226a792
4 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,7 @@
releases: releases:
- version: "0.6.5"
fixes:
- "fixed openai provider test error"
- version: "0.6.4" - version: "0.6.4"
features: features:
- "Added batch embedding for siliconflow" - "Added batch embedding for siliconflow"

View File

@ -1,7 +1,7 @@
{ {
"id": "infio-copilot", "id": "infio-copilot",
"name": "Infio Copilot", "name": "Infio Copilot",
"version": "0.6.4", "version": "0.6.5",
"minAppVersion": "0.15.0", "minAppVersion": "0.15.0",
"description": "A Cursor-inspired AI assistant for notes that offers smart autocomplete and interactive chat with your selected notes", "description": "A Cursor-inspired AI assistant for notes that offers smart autocomplete and interactive chat with your selected notes",
"author": "Felix.D", "author": "Felix.D",

View File

@ -1,6 +1,6 @@
{ {
"name": "obsidian-infio-copilot", "name": "obsidian-infio-copilot",
"version": "0.6.4", "version": "0.6.5",
"description": "A Cursor-inspired AI assistant that offers smart autocomplete and interactive chat with your selected notes", "description": "A Cursor-inspired AI assistant that offers smart autocomplete and interactive chat with your selected notes",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@ -1786,6 +1786,12 @@ export const GetDefaultModelId = (provider: ApiProvider): { chat: string, autoCo
"autoComplete": anthropicDefaultAutoCompleteModelId, "autoComplete": anthropicDefaultAutoCompleteModelId,
"embedding": anthropicDefaultEmbeddingModelId, "embedding": anthropicDefaultEmbeddingModelId,
} }
case ApiProvider.OpenAI:
return {
"chat": openAiNativeDefaultModelId,
"autoComplete": openAiNativeDefaultAutoCompleteModelId,
"embedding": openAiNativeDefaultEmbeddingModelId,
}
case ApiProvider.Deepseek: case ApiProvider.Deepseek:
return { return {
"chat": deepSeekDefaultModelId, "chat": deepSeekDefaultModelId,
@ -1829,4 +1835,4 @@ export const GetDefaultModelId = (provider: ApiProvider): { chat: string, autoCo
"embedding": null, "embedding": null,
} }
} }
} }