MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getBaseUrl

Method getBaseUrl

src/api/providers/qwen-code.ts:189–195  ·  view source on GitHub ↗
(creds: QwenOAuthCredentials)

Source from the content-addressed store, hash-verified

187 }
188
189 private getBaseUrl(creds: QwenOAuthCredentials): string {
190 let baseUrl = creds.resource_url || "https://dashscope.aliyuncs.com/compatible-mode/v1"
191 if (!baseUrl.startsWith("http://") && !baseUrl.startsWith("https://")) {
192 baseUrl = `https://${baseUrl}`
193 }
194 return baseUrl.endsWith("/v1") ? baseUrl : `${baseUrl}/v1`
195 }
196
197 private async callApiWithRetry<T>(apiCall: () => Promise<T>): Promise<T> {
198 try {

Callers 2

ensureAuthenticatedMethod · 0.95
callApiWithRetryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected