diff --git a/docs/openapi/jan.yaml b/docs/openapi/jan.yaml index e3463c94c..bfff0ad73 100644 --- a/docs/openapi/jan.yaml +++ b/docs/openapi/jan.yaml @@ -14,7 +14,7 @@ license: name: AGPLv3 url: https://github.com/janhq/nitro/blob/main/LICENSE servers: - - url: http://localhost:1337/v1/ + - url: /v1 tags: - name: Models description: List and describe the various models available in the API. @@ -642,4 +642,4 @@ x-webhooks: content: application/json: schema: - $ref: specs/threads.yaml#/components/schemas/ThreadObject \ No newline at end of file + $ref: specs/threads.yaml#/components/schemas/ThreadObject diff --git a/server/index.ts b/server/index.ts index 1d3752680..05bfdca96 100644 --- a/server/index.ts +++ b/server/index.ts @@ -116,7 +116,7 @@ export const startServer = async (configs?: ServerConfig) => { // Log server listening if (isVerbose) logServer( - `Debug: JAN API listening at: http://${JAN_API_HOST}:${JAN_API_PORT}` + `Debug: JAN API listening at: http://${hostSetting}:${portSetting}` ); }); } catch (e) {