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

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