mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 08:00:10 +00:00
update test settings
This commit is contained in:
@@ -64,12 +64,14 @@ describe('parseSmartCopilotSettings', () => {
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
anthropicProvider: {
|
||||
name: 'Anthropic',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
ollamaChatModel: {
|
||||
baseUrl: '',
|
||||
@@ -141,60 +143,70 @@ describe('parseSmartCopilotSettings', () => {
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
googleProvider: {
|
||||
name: 'Google',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
groqProvider: {
|
||||
name: 'Groq',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
grokProvider: {
|
||||
name: 'Grok',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
infioProvider: {
|
||||
name: 'Infio',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
ollamaProvider: {
|
||||
apiKey: 'ollama',
|
||||
baseUrl: '',
|
||||
name: 'Ollama',
|
||||
useCustomUrl: true,
|
||||
models: [],
|
||||
},
|
||||
openaiProvider: {
|
||||
name: 'OpenAI',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
openaicompatibleProvider: {
|
||||
name: 'OpenAICompatible',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: true,
|
||||
models: [],
|
||||
},
|
||||
openrouterProvider: {
|
||||
name: 'OpenRouter',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
siliconflowProvider: {
|
||||
name: 'SiliconFlow',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
})
|
||||
})
|
||||
@@ -277,12 +289,14 @@ describe('settings migration', () => {
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
anthropicProvider: {
|
||||
name: 'Anthropic',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
ollamaChatModel: {
|
||||
baseUrl: '',
|
||||
@@ -354,60 +368,70 @@ describe('settings migration', () => {
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
googleProvider: {
|
||||
name: 'Google',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
groqProvider: {
|
||||
name: 'Groq',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
grokProvider: {
|
||||
name: 'Grok',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
infioProvider: {
|
||||
name: 'Infio',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
ollamaProvider: {
|
||||
apiKey: 'ollama',
|
||||
baseUrl: '',
|
||||
name: 'Ollama',
|
||||
useCustomUrl: true,
|
||||
models: [],
|
||||
},
|
||||
openaiProvider: {
|
||||
name: 'OpenAI',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
openaicompatibleProvider: {
|
||||
name: 'OpenAICompatible',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: true,
|
||||
models: [],
|
||||
},
|
||||
openrouterProvider: {
|
||||
name: 'OpenRouter',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
siliconflowProvider: {
|
||||
name: 'SiliconFlow',
|
||||
apiKey: '',
|
||||
baseUrl: '',
|
||||
useCustomUrl: false,
|
||||
models: [],
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -433,7 +433,7 @@ function migrateSettings(
|
||||
currentVersion < migration.toVersion &&
|
||||
migration.toVersion <= SETTINGS_SCHEMA_VERSION
|
||||
) {
|
||||
console.log(
|
||||
console.debug(
|
||||
`Migrating settings from ${migration.fromVersion} to ${migration.toVersion}`,
|
||||
)
|
||||
currentData = migration.migrate(currentData)
|
||||
|
||||
Reference in New Issue
Block a user