diff --git a/src/lib/commandCenter/panels/ai.svelte b/src/lib/commandCenter/panels/ai.svelte index 3cc6a5409..6eb8a3de5 100644 --- a/src/lib/commandCenter/panels/ai.svelte +++ b/src/lib/commandCenter/panels/ai.svelte @@ -11,7 +11,7 @@ import { VARS } from '$lib/system'; const { input, handleSubmit, completion, isLoading, complete } = useCompletion({ - api: VARS.ASSISTANT_ENDPOINT + api: VARS.APPWRITE_ENDPOINT + '/console/assistant' }); const examples = [ diff --git a/src/lib/layout/logs.svelte b/src/lib/layout/logs.svelte index c59e39f9d..e7d5e3781 100644 --- a/src/lib/layout/logs.svelte +++ b/src/lib/layout/logs.svelte @@ -171,58 +171,42 @@

{:else if selectedRequest === 'headers'} - {@const headers = Object.entries(execution?.responseHeaders)} - {#if headers.length} - - {#each headers as [key, value]} -
  • - - {key} - - - {value} - -
  • - {/each} -
    - {:else} - - - Only some request headers are stored - -

    - Logging some headers might compromise privacy and - security. We only log well-known public headers. To log - more headers intentionally, use context.log() - in your function and make them available in Logs tab. - Learn more. -

    -
    + + + Only some request headers are stored + +

    + Logging some headers might compromise privacy and security. + We only log well-known public headers. To log more headers + intentionally, use context.log() + in your function and make them available in Logs tab. + Learn more. +

    +
    - {#if execution.requestHeaders.length} - - - Name - Value - - - {#each execution.requestHeaders as header} - - - {header.name} - - {header.value} - - {/each} - -
    - {/if} + {#if execution.requestHeaders.length} + + + Name + Value + + + {#each execution.requestHeaders as header} + + + {header.name} + + {header.value} + + {/each} + +
    {/if} {:else if selectedRequest === 'body'} diff --git a/src/lib/system.ts b/src/lib/system.ts index cf4ef3672..984788285 100644 --- a/src/lib/system.ts +++ b/src/lib/system.ts @@ -11,7 +11,6 @@ export const VARS = { CONSOLE_MODE: import.meta.env?.VITE_CONSOLE_MODE?.toString() as string | undefined, VERCEL_ENV: import.meta.env?.VITE_VERCEL_ENV?.toString() as string | undefined, GOOGLE_ANALYTICS: import.meta.env?.VITE_GA_PROJECT?.toString() as string | undefined, - ASSISTANT_ENDPOINT: import.meta.env?.VITE_ASSISTANT_ENDPOINT?.toString() as string | undefined, GOOGLE_TAG: import.meta.env?.VITE_GTM_PROJECT?.toString() as string | undefined };