Skip to content

Commit

Permalink
chore: review
Browse files Browse the repository at this point in the history
Signed-off-by: Evzen Gasta <[email protected]>
  • Loading branch information
gastoner committed Nov 11, 2024
1 parent 6671bde commit fc113fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
"default": false,
"description": "Experimental GPU support for inference servers"
},
"ai-lab.apiPort": {
"type": "number",
"default": 10434,
"minimum": 1024,
"maximum": 65535,
"description": "Port on which the API is listening (requires restart of extension)"
},
"ai-lab.experimentalTuning": {
"type": "boolean",
"default": false,
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/lib/Navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ onDestroy(() => {

<!-- Settings -->
<div class="pl-3 mt-2 ml-[4px]">
<span class="text-[color:var(--pd-secondary-nav-header-text)]">Configurable Options</span>
<span class="text-[color:var(--pd-secondary-nav-header-text)]">Server Information</span>
</div>
<SettingsNavItem
icon={faGear}
title="AI Lab Service"
title="Local Server"
selected={meta.url === '/ai_lab_service'}
href="/ai_lab_service" />

Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/pages/AiLabService.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ onMount(() => {
if (port) {
aiLabPort = port;
} else {
aiLabPort = 8888;
aiLabPort = 10434;
}
});
Expand All @@ -28,7 +28,7 @@ onDestroy(async () => {
});
async function setPortToDefaultOne(): Promise<void> {
aiLabPort = 8888;
aiLabPort = 10434;
await studioClient.updateExtensionConfiguration({ apiPort: aiLabPort });
}
Expand All @@ -54,7 +54,7 @@ async function onAiLabPortInput(event: Event): Promise<void> {
}
</script>

<NavPage title="Configurable Options" searchEnabled={false}>
<NavPage title="Local Server" searchEnabled={false}>
<div slot="content" class="flex flex-col min-w-full min-h-full">
<div class="min-w-full min-h-full flex-1">
<div class="text-[var(--pd-details-body-text)] mt-4 px-5 space-y-5" aria-label="inner-content">
Expand All @@ -75,7 +75,7 @@ async function onAiLabPortInput(event: Event): Promise<void> {
value={String(aiLabPort ?? 0)}
on:input={async (e): Promise<void> => await onAiLabPortInput(e)}
class="w-full ml-2"
placeholder="8888"
placeholder="10434"
name="aiLabPort"
aria-label="Port input" />
</div>
Expand Down

0 comments on commit fc113fb

Please sign in to comment.