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
16.06k stars 3.73k forks source link

调用API时返回的是WEB界面的HTML代码 #1473

Open bingjiw opened 1 month ago

bingjiw commented 1 month ago

问题描述

调用API时返回的是WEB界面的HTML代码,如下:

Bad Gateway: HTTP code 200 from API (<!doctype html><html lang="zh-CN"><head><title>One API</title><link rel="icon" href="/favicon.ico"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#2296f3"/><meta name="description" content="OpenAI 接口聚合管理,支持多种渠道包括 Azure,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用"/><script defer="defer" src="/static/js/main.5b38f9ab.js"></script><link href="/static/css/main.d77598b1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>)

复现步骤

预期结果

相关截图 如果没有的话,请删除此节。

ye4293 commented 1 month ago

路径错了

bingjiw commented 1 month ago

谢谢,域名后应该要加上 /v1 对吧?

On 28 May 2024, at 10:42, Ghostz @.***> wrote:

路径错了

— Reply to this email directly, view it on GitHub https://github.com/songquanpeng/one-api/issues/1473#issuecomment-2134256812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5J6XXTYWKAE7JSFNPXA2LZEPVKJAVCNFSM6AAAAABIL5QP5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGI2TMOBRGI. You are receiving this because you authored the thread.