mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-03 01:02:15 +08:00
feishu stream (#6629)
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import _, { type AxiosRequestConfig } from 'axios';
|
||||
import { ProxyAgent } from 'proxy-agent';
|
||||
import { isDevEnv } from '@fastgpt/global/common/system/constants';
|
||||
|
||||
export function createProxyAxios(config?: AxiosRequestConfig) {
|
||||
if (isDevEnv) {
|
||||
return _.create(config);
|
||||
}
|
||||
const agent = new ProxyAgent();
|
||||
|
||||
return _.create({
|
||||
|
||||
Reference in New Issue
Block a user