Merge pull request #1670 from janhq/fix/server_api_reference

fix: server API reference
This commit is contained in:
hiro 2024-01-22 12:25:13 +07:00 committed by GitHub
commit 4cf6df1911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,11 +125,13 @@ const LocalServerScreen = () => {
>
{serverEnabled ? 'Stop' : 'Start'} Server
</Button>
{serverEnabled && (
<Button block themes="secondaryBlue" asChild>
<a href="https://jan.ai/api-reference/" target="_blank">
<a href={`http://${host}:${port}`} target="_blank">
API Reference <ExternalLinkIcon size={20} className="ml-2" />
</a>
</Button>
)}
</div>
</div>