Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buggy in the chat-gpt-next-web #31

Closed
Doutianbao opened this issue May 3, 2023 · 2 comments
Closed

buggy in the chat-gpt-next-web #31

Doutianbao opened this issue May 3, 2023 · 2 comments

Comments

@Doutianbao
Copy link

Doutianbao commented May 3, 2023

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
<script src="/cdn-cgi/apps/head/dYMkwc06fJ_hgAqAMinzib-CLyo.js"></script></head>
<body>
<pre>Cannot POST /v1/v1/chat/completions</pre>
<script>(function(){var js = "window['__CF$cv$params']={r:'7c18a4cfefb2c082',m:'TdleDOGxwfwMaYropzInOVm8yAdSnKJtZgU0lwpbsm8-1683118374-0-AdohaiLUtnHFnZlXhU6mfRBcoOt9pAwrxn+c+O2B4kGM',u:'/cdn-cgi/challenge-platform/h/g'};_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/scripts/invisible.js',document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.nonce = '';_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script></body>
</html>
@Doutianbao
Copy link
Author

Doutianbao commented May 3, 2023

docker install

docker run -d -p 3000:3000 \
-e OPENAI_API_KEY="pk-XXXXXXX" \
-e BASE_URL="https://api.pawan.krd/v1" \
-e CODE="123456" \
yidadaa/chatgpt-next-web

@PawanOsman
Copy link
Owner

it looks like the app you want to use is a bit different from the OpenAI libraries

you need to set BASE_URL to "https://api.pawan.krd" instead of "https://api.pawan.krd/v1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants