mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-10 17:00:25 -07:00
* refactor: simplify tool writing * feat: load prompt from plugin in a wiki, let agent know what to do based on https://github.com/TiddlyWiki/TiddlyWiki5/issues/9378 * fix: i18n fix: i18n fix: wrong i18n structure fix: empty i18n * Add ContentLoading component and suspense fallback * fix: monaco loading * docs: usage of chrome mcp to contron during dev * fix: provider config truncate user input when typing * fix: legacy usage * Update package.json * fix: not loadin initial data * feat: better prompt sort * fix: sorting of array * fix: drag * Create DragAndDrop.md * feat: directly enter edit mode * fix: workspace config change cause immediate main wiki restart * Add 'Press Enter to confirm' to tag help texts * fix: dont show system tag when adding sub wiki * feat: inform user to press enter on tag auto complete * refactor: let sub wiki auto complete tag * Revert Add 'Press Enter to confirm' to tag help texts * fix: not able to open prompt editor by click prompt tree * fix: click to open plugin config * chore: remove log * feat: Auto-select the first file if none is selected * fix: don't preview not enabled prompt parts * fix: Keep i18n ally think these keys exist, otherwise it will delete them during "check usage" * lint: fix * Update externalAPI.logging.test.ts
211 lines
4.8 KiB
TypeScript
211 lines
4.8 KiB
TypeScript
import { t } from '@services/libs/i18n/placeholder';
|
|
|
|
export default {
|
|
providers: [
|
|
{
|
|
provider: 'openai',
|
|
providerClass: 'openai',
|
|
isPreset: true,
|
|
enabled: false,
|
|
models: [
|
|
{
|
|
name: 'gpt-4o',
|
|
caption: 'GPT-4o',
|
|
features: ['language', 'reasoning', 'toolCalling', 'vision'],
|
|
},
|
|
{
|
|
name: 'gpt-4-turbo',
|
|
caption: 'GPT-4 Turbo',
|
|
features: ['language', 'reasoning', 'toolCalling'],
|
|
},
|
|
{
|
|
name: 'gpt-3.5-turbo',
|
|
caption: 'GPT-3.5 Turbo',
|
|
features: ['language'],
|
|
},
|
|
{
|
|
name: 'text-embedding-3-small',
|
|
caption: 'Text Embedding 3 Small',
|
|
features: ['embedding'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
provider: 'siliconflow',
|
|
providerClass: 'openAICompatible',
|
|
isPreset: true,
|
|
enabled: true,
|
|
baseURL: 'https://api.siliconflow.cn/v1',
|
|
models: [
|
|
{
|
|
name: 'Qwen/Qwen2.5-7B-Instruct',
|
|
caption: '通义千问 2.5 7B',
|
|
features: ['language', 'reasoning', 'free'],
|
|
},
|
|
{
|
|
name: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',
|
|
caption: 'DeepSeek-R1',
|
|
features: ['language', 'reasoning'],
|
|
},
|
|
{
|
|
name: 'BAAI/bge-m3',
|
|
caption: 'bge-m3',
|
|
features: ['embedding'],
|
|
},
|
|
{
|
|
name: 'IndexTeam/IndexTTS-2',
|
|
caption: 'IndexTTS-2',
|
|
features: ['speech'],
|
|
},
|
|
{
|
|
name: 'TeleAI/TeleSpeechASR',
|
|
caption: 'TeleSpeechASR',
|
|
features: ['transcriptions'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
provider: 'ollama',
|
|
providerClass: 'ollama',
|
|
isPreset: true,
|
|
showBaseURLField: true,
|
|
enabled: false,
|
|
baseURL: 'http://localhost:11434',
|
|
models: [
|
|
{
|
|
name: 'llama3',
|
|
caption: 'Llama 3',
|
|
features: ['language'],
|
|
},
|
|
{
|
|
name: 'phi3',
|
|
caption: 'Phi-3',
|
|
features: ['language'],
|
|
},
|
|
{
|
|
name: 'mistral',
|
|
caption: 'Mistral',
|
|
features: ['language'],
|
|
},
|
|
{
|
|
name: 'gemma',
|
|
caption: 'Gemma',
|
|
features: ['language'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
provider: 'deepseek',
|
|
providerClass: 'deepseek',
|
|
isPreset: true,
|
|
enabled: false,
|
|
models: [
|
|
{
|
|
name: 'deepseek-chat',
|
|
caption: 'DeepSeek Chat',
|
|
features: ['language', 'reasoning'],
|
|
},
|
|
{
|
|
name: 'deepseek-coder',
|
|
caption: 'DeepSeek Coder',
|
|
features: ['language', 'reasoning'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
provider: 'anthropic',
|
|
providerClass: 'anthropic',
|
|
isPreset: true,
|
|
enabled: false,
|
|
models: [
|
|
{
|
|
name: 'claude-3-opus-20240229',
|
|
caption: 'Claude 3 Opus',
|
|
features: ['language', 'reasoning', 'vision', 'toolCalling'],
|
|
},
|
|
{
|
|
name: 'claude-3-sonnet-20240229',
|
|
caption: 'Claude 3 Sonnet',
|
|
features: ['language', 'reasoning', 'vision'],
|
|
},
|
|
{
|
|
name: 'claude-3-haiku-20240307',
|
|
caption: 'Claude 3 Haiku',
|
|
features: ['language', 'reasoning', 'vision'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
provider: 'comfyui',
|
|
providerClass: 'comfyui',
|
|
isPreset: true,
|
|
enabled: false,
|
|
baseURL: 'http://localhost:8188',
|
|
models: [
|
|
{
|
|
name: 'flux',
|
|
caption: 'Flux',
|
|
features: ['imageGeneration'],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
defaultConfig: {
|
|
default: {
|
|
provider: 'siliconflow',
|
|
model: 'Qwen/Qwen2.5-7B-Instruct',
|
|
},
|
|
modelParameters: {
|
|
temperature: 0.7,
|
|
systemPrompt: 'You are a helpful assistant.',
|
|
topP: 0.95,
|
|
},
|
|
},
|
|
modelFeatures: [
|
|
{
|
|
value: 'language',
|
|
label: 'Language',
|
|
i18nKey: t('ModelFeature.Language'),
|
|
},
|
|
{
|
|
value: 'reasoning',
|
|
label: 'Reasoning',
|
|
i18nKey: t('ModelFeature.Reasoning'),
|
|
},
|
|
{
|
|
value: 'toolCalling',
|
|
label: 'Tool Calling',
|
|
i18nKey: t('ModelFeature.ToolCalling'),
|
|
},
|
|
{
|
|
value: 'vision',
|
|
label: 'Vision',
|
|
i18nKey: t('ModelFeature.Vision'),
|
|
},
|
|
{
|
|
value: 'imageGeneration',
|
|
label: 'Image Generation',
|
|
i18nKey: t('ModelFeature.ImageGeneration'),
|
|
},
|
|
{
|
|
value: 'embedding',
|
|
label: 'Embedding',
|
|
i18nKey: t('ModelFeature.Embedding'),
|
|
},
|
|
{
|
|
value: 'speech',
|
|
label: 'Speech',
|
|
i18nKey: t('ModelFeature.Speech'),
|
|
},
|
|
{
|
|
value: 'transcriptions',
|
|
label: 'Transcriptions',
|
|
i18nKey: t('ModelFeature.Transcriptions'),
|
|
},
|
|
{
|
|
value: 'free',
|
|
label: 'Free',
|
|
i18nKey: t('ModelFeature.Free'),
|
|
},
|
|
],
|
|
};
|