songquanpeng / one-api

OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
https://openai.justsong.cn/
MIT License
18.2k stars 4.11k forks source link

azure openai不稳定,隔一会就报错、过一会又正常,do request failed #1507

Closed yeqing1a closed 3 months ago

yeqing1a commented 3 months ago

例行检查

问题描述 基本上现在是失败一次,过几分钟成功一次,过几分钟又失败一次。。。。 报错: { "error": { "message": "do request failed: Post \"https://timye.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2024-02-01\": dial tcp: lookup timye.openai.azure.com on 127.0.0.11:53: no such host (request id: 2024060423520828503329587692701)", "type": "one_api_error", "param": "", "code": "do_request_failed" } }

oneapi容器日志没有其他异常:

[ERR] 2024/06/04 - 23:35:37 | 2024060423353725868674440005909 | relay error (channel id 1, user id: 1): do request failed: Post "https://timye.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2024-02-01": dial tcp: lookup timye.openai.azure.com on 127.0.0.11:53: no such host (request id: 2024060423353725868674440005909) [INFO] 2024/06/04 - 23:35:38 | 2024060423353881258824033554203 | user 1 has enough quota 499999998506883, trusted and no need to pre-consume [ERR] 2024/06/04 - 23:35:38 | 2024060423353881258824033554203 | DoRequest failed: do request failed: Post "https://timye.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2024-02-01": dial tcp: lookup timye.openai.azure.com on 127.0.0.11:53: server misbehaving [GIN] 2024/06/04 - 23:35:38 | 2024060423353881258824033554203 | 500 | 88.396933ms | 172.22.0.1 | POST /v1/chat/completions [ERR] 2024/06/04 - 23:35:38 | 2024060423353881258824033554203 | relay error (channel id 1, user id: 1): do request failed: Post "https://timye.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2024-02-01": dial tcp: lookup timye.openai.azure.com on 127.0.0.11:53: server misbehaving (request id: 2024060423353881258824033554203) [SYS] 2024/06/04 - 23:35:41 | batch update started [SYS] 2024/06/04 - 23:35:41 | batch update finished [SYS] 2024/06/04 - 23:35:51 | batch update started [SYS] 2024/06/04 - 23:35:51 | batch update finished [SYS] 2024/06/04 - 23:36:01 | batch update started

复现步骤

预期结果

image
gzspkgypt commented 3 months ago

我已经稳定使用了3个多月了,没有遇到你描述的问题,可能是配置问题,或者是使用的web壳子问题。

ygai002 commented 3 months ago

我已经稳定使用了3个多月了,没有遇到你描述的问题,可能是配置问题,或者是使用的web壳子问题。

可否咨询一下 one api 中你是如何配置的呢 ?我测试显示资源404了 ,也不知道是哪里的问题。 image

igophper commented 3 months ago

这个看不出是one-api的问题,可能是网络问题。