fix(API): #1720 host/port provided in the local API server does not fully applied (#1721)

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
This commit is contained in:
NamH 2024-01-23 12:30:43 +07:00 committed by GitHub
parent f8c1f91b73
commit d852219c4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ license:
name: AGPLv3 name: AGPLv3
url: https://github.com/janhq/nitro/blob/main/LICENSE url: https://github.com/janhq/nitro/blob/main/LICENSE
servers: servers:
- url: http://localhost:1337/v1/ - url: /v1
tags: tags:
- name: Models - name: Models
description: List and describe the various models available in the API. description: List and describe the various models available in the API.

View File

@ -116,7 +116,7 @@ export const startServer = async (configs?: ServerConfig) => {
// Log server listening // Log server listening
if (isVerbose) if (isVerbose)
logServer( logServer(
`Debug: JAN API listening at: http://${JAN_API_HOST}:${JAN_API_PORT}` `Debug: JAN API listening at: http://${hostSetting}:${portSetting}`
); );
}); });
} catch (e) { } catch (e) {