fix(agents): add http protocol to agent client base url

This commit is contained in:
icarus 2025-09-18 20:28:08 +08:00
parent 302331043a
commit 4c5bed0b1f

View File

@ -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}`
}