mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-31 00:10:22 +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 { host, port, apiKey } = apiServer
|
||||
const client = new AgentApiClient({
|
||||
baseURL: `${host}:${port}`,
|
||||
baseURL: `http://${host}:${port}`,
|
||||
headers: {
|
||||
Authorization: `Bearer ${apiKey}`
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user