Skip to content

Commit 027c2b9

Browse files
authored
837 add perplexity to ai endpoint examples (#838)
* streamline use of button loading state instead of ProgressSpinner * added more examples for AI endpoints and models * apply formatting changes --------- Co-authored-by: Logende <[email protected]>
1 parent e13c035 commit 027c2b9

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

meta_configurator/src/components/toolbar/dialogs/data-export/DataExportDialog.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import Dialog from 'primevue/dialog';
55
import Textarea from 'primevue/textarea';
66
import Button from 'primevue/button';
77
import Panel from 'primevue/panel';
8-
import ProgressSpinner from 'primevue/progressspinner';
98
import {SessionMode} from '@/store/sessionMode';
109
import {getDataForMode, getSchemaForMode} from '@/data/useDataLink';
1110
import {DataExportServiceHandlebars} from '@/utility/data-export/dataExportServiceHandlebars';

meta_configurator/src/components/toolbar/dialogs/data-mapping/DataMappingDialog.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import * as ace from 'brace';
1717
import {setupAceProperties} from '@/components/panels/shared-components/aceUtils';
1818
import {useSettings} from '@/settings/useSettings';
1919
import {useDebounceFn} from '@vueuse/core';
20-
import ProgressSpinner from 'primevue/progressspinner';
2120
import ApiKeyWarning from '@/components/panels/ai-prompts/ApiKeyWarning.vue';
2221
import PanelSettings from '@/components/panels/shared-components/PanelSettings.vue';
2322
@@ -240,8 +239,8 @@ defineExpose({show: openDialog, close: hideDialog});
240239
label="Generate Suggestion"
241240
icon="pi pi-wand"
242241
@click="generateMappingSuggestion"
243-
class="w-full" />
244-
<ProgressSpinner v-if="isLoadingMapping" />
242+
class="w-full"
243+
:loading="isLoadingMapping" />
245244

246245
<div class="mt-6">
247246
<Divider />

meta_configurator/src/settings/defaultSettingsData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ export const SETTINGS_DATA_DEFAULT = {
115115
model: 'gpt-4o-mini',
116116
maxTokens: 5000,
117117
temperature: 0.0,
118-
endpoint: 'https://api.openai.com/v1/chat/completions',
118+
endpoint: 'https://api.openai.com/v1/',
119119
},
120120
};

meta_configurator/src/settings/settingsSchema.ts

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,26 @@ export const SETTINGS_SCHEMA: TopLevelSchema = {
444444
type: 'string',
445445
description: 'The model to use for the AI API.',
446446
default: 'gpt-4o-mini',
447-
examples: ['gpt-4o-mini', 'gpt-4o'],
447+
examples: [
448+
// OpenAI
449+
'gpt-4o-mini',
450+
'gpt-4o',
451+
'gpt-4o-pro',
452+
'gpt-4.1',
453+
'gpt-3.5-turbo',
454+
// Perplexity (Sonar)
455+
'sonar',
456+
'sonar-pro',
457+
// OpenRouter (provider/model format)
458+
'openai/gpt-3.5-turbo',
459+
'openai/gpt-4o-mini',
460+
'anthropic/claude-3.5-sonnet',
461+
'anthropic/claude-sonnet-4.5',
462+
'mistral/mistral-7b-instruct',
463+
'deepseek/deepseek-v3.2-exp',
464+
'x-ai/grok-4-fast',
465+
'x-ai/grok-4-fast:free',
466+
],
448467
},
449468
maxTokens: {
450469
type: 'integer',
@@ -465,9 +484,17 @@ export const SETTINGS_SCHEMA: TopLevelSchema = {
465484
'The endpoint to use for the AI API. Must follow the OpenAI API specification.',
466485
default: 'https://api.openai.com/v1/',
467486
examples: [
487+
// OpenAI official
468488
'https://api.openai.com/v1/',
469-
'https://api.helmholtz-blablador.fz-juelich.de/v1/',
489+
// Perplexity (OpenAI-compatible)
490+
'https://api.perplexity.ai/',
491+
// OpenRouter (aggregator, OpenAI-compatible)
492+
'https://api.openrouter.ai/v1/',
493+
// Academic / institutional deployments (OpenAI-compatible)
470494
'https://chat-ai.academiccloud.de/v1/',
495+
'https://api.helmholtz-blablador.fz-juelich.de/v1/',
496+
// Custom/self-hosted proxy
497+
'https://my-llm-proxy.example.com/v1/',
471498
],
472499
},
473500
},

0 commit comments

Comments
 (0)