MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / request

Method request

ai/ai.ts:2497–2512  ·  view source on GitHub ↗
(
    requestConfig: AxiosRequestConfig,
    token?: AbortToken,
  )

Source from the content-addressed store, hash-verified

2495 }
2496
2497 async request<T = any>(
2498 requestConfig: AxiosRequestConfig,
2499 token?: AbortToken,
2500 ): Promise<AxiosResponse<T>> {
2501 return await this.middlewarePipeline.execute(
2502 requestConfig,
2503 async (config: AxiosRequestConfig, pipelineToken?: AbortToken) => {
2504 const finalConfig: AxiosRequestConfig = {
2505 ...config,
2506 signal: pipelineToken?.signal ?? config.signal,
2507 };
2508 return await this.axiosInstance(finalConfig);
2509 },
2510 token,
2511 );
2512 }
2513}
2514
2515class AIService implements ConfigChangeListener {

Callers 15

makeRequestMethod · 0.45
ensureTelegraphTokenMethod · 0.45
createTelegraphPageMethod · 0.45
sendViaBotMethod · 0.45
resolveAIImageDataFunction · 0.45
resolveAIVideoDataFunction · 0.45
createTelegraphPageMethod · 0.45
ensureTGTokenMethod · 0.45

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected