mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
fix(agents): add http protocol to agent client base url
This commit is contained in:
parent
302331043a
commit
4c5bed0b1f
@ -6,7 +6,7 @@ export const useAgentClient = () => {
|
|||||||
const { apiServer } = useSettings()
|
const { apiServer } = useSettings()
|
||||||
const { host, port, apiKey } = apiServer
|
const { host, port, apiKey } = apiServer
|
||||||
const client = new AgentApiClient({
|
const client = new AgentApiClient({
|
||||||
baseURL: `${host}:${port}`,
|
baseURL: `http://${host}:${port}`,
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${apiKey}`
|
Authorization: `Bearer ${apiKey}`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user