const response = await axios({
method: 'post',
url:'https://api.openai.com/v1/chat/completions',
headers: {
'Content-Type': 'application/json',
'Authorization': OPENAI_API_KEY1,
},
data: {
model: 'gpt-4',
messages: [{ role: 'user', content: prompt }],
stream: true
},
responseType: 'stream',
});
postman可以调到,云函数提示超时
OpenAI域名位于海外,国内访问不通
我本地ping不通,超时啊,咋解释