aurora-develop / aurora Goto Github PK
View Code? Open in Web Editor NEWfree
License: MIT License
free
License: MIT License
如题,昨天晚上还是可以的,今天就总是500了,拼命重试可以刷新出几次可以正常回答。
root@vm3:~/chatgpt-qq# curl --location 'http://127.0.0.1:8080/v1/chat/completions' --header 'Content-Type: application/json' --data '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"stream": true
}'
{"code":500,"message":"error sending request","param":{},"type":"InitTurnStile_request_error"}
{
"code": 401,
"message": "response status code is not 200",
"param": {},
"type": "InitTurnStile_request_error"
}
有另外一台ip可以正常运行,这台KR的就不行,但是在KR的chatgptnext上面填我另外一条的api就可以
编译错误Error: please put HAR files in harPool directory!arm64的机器
大佬,发现一个问题;在Docker中使用了ProxyURL,刚启动时可以正常使用,但是过了几个小时没使用(具体时间没有测算过)之后就会报403错误,出现过403后就会一直出403无法使用,这时候再次重启Docker容器又会恢复正常可用状态。返回错误的时间很快,正常要1.5秒,403的时候只要250ms,感觉是不是过一段时间后就没有连接代理了啊。
�f[GIN] 2024/04/05 - 08:40:05 | 200 | 1.528015579s | 192.168.31.5 | POST "/v1/chat/completions"
�f[GIN] 2024/04/05 - 08:40:08 | 200 | 1.473025831s | 192.168.31.5 | POST "/v1/chat/completions"
�f[GIN] 2024/04/05 - 12:39:37 | 403 | 238.163146ms | 192.168.31.5 | POST "/v1/chat/completions"
�f[GIN] 2024/04/05 - 12:39:40 | 403 | 275.352161ms | 192.168.31.5 | POST "/v1/chat/completions"
�f[GIN] 2024/04/05 - 12:39:49 | 403 | 238.460123ms | 192.168.31.5 | POST "/v1/chat/completions"
是不是被禁了?
个人的小服务器不经薅,希望加点防护 🥹
Can you support python? thank you
例如ip限制或者key之类的
查了一下,好像比较容易🥹
import (
"github.com/gin-gonic/autotls"
"github.com/gin-gonic/gin"
"golang.org/x/crypto/acme/autocert"
)
BASE_URL=“https://auroraxf.glitch.me/api” (CN网络无法使用)
BASE_URL="https://api.angelxf.cf/api" (快速)
环境变量已支持自定义base_url,使用代理的url可以绕过限制
由于滥用严重 服务器苦不受堪 故关闭免费网关
curl --location 'http://127.0.0.1:8080/v1/chat/completions' \
--header 'Content-Type: application/json'
--data '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"stream": true
}'
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"role":"assistant"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":"This"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" is"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" a"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" test"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":"!"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0125","choices":[{"delta":{},"index":0,"finish_reason":"stop"}]}
data: [DONE]
[root@instance-20221012-2111 ~]# curl --location 'http://127.0.0.1:8080/v1/chat/completions' \
--header 'Content-Type: application/json'
--data '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"stream": true
}'
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"role":"assistant"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":"This"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" is"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" a"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" test"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":"!"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0125","choices":[{"delta":{},"index":0,"finish_reason":"stop"}]}
data: [DONE]
使用nextchat也报错{
"error": true,
"message": "Failed to fetch"
}
接口地址写入的http://127.0.0.1:8080/v1/chat/completions
postman 请求http://127.0.0.1:8080/v1/chat/completions 也是404 page not found
之前我一直使用: ChatGPT-to-API
后来这个不能用,目前这个aurora是我用过最好的同类应用,可以直接用api !!!希望再接再厉!
韩国春川一直401 部署了几遍 是ip问题?
{"code":401,"message":"response status code is not 200","param":{},"type":"InitTurnStile_request_error"}
咋整 直接拉取的镜像部署后 使用 提示未经授权...
出啥情况了? 早上还好好的 现在403了
三台服务器都403
UI界面管理账号、指纹等功能
可以使用api,但是网页对话不了?
https://aurora-la
使用镜像:#122 (comment)
http://172.233.137.
使用最新镜像
ghcr.io/aurora-develop/aurora latest c4ea1f094830 About an hour ago 23.9MB
用F12看了一下,好像是请求url的问题?
http://172.233.137.23
报告佬: 有错误,不知道如何解决
$docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
baa2171b690f ghcr.io/aurora-develop/aurora:latest "./aurora" About a minute ago Up About a minute 0.0.0.0:8080->8080/tcp naughty_bartik
$curl --location 'http://127.0.0.1:8080/v1/chat/completions' --header 'Content-Type: application/json' --data '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}]
}'
{"error":"unable to check chat requirement"}
.gitattributes
文件可以用于定义项目中文件的属性,以优化项目的版本控制。定义行尾风格:,.gitattributes
文件可以用于定义行尾风格。你可以设置所有的 .go
和 .html
文件在提交时自动转换为 LF 行尾,而在检出时转换为 CRLF 行尾。
*.go text eol=lf
*.html text eol=lf
定义文件的合并策略:.gitattributes
文件可以用于定义特定文件的合并策略。可以设置所有的 .json
文件使用 merge=ours
策略,这意味着在合并冲突时,总是选择当前分支的版本。
*.json merge=ours
最新的镜像出现401错误。这个镜像(sha256:0b7131bc7abd455bfc531a6350be01cb64c6309647c76c7a173519014ad552c7)及以前的可以正常使用。
我看是支持stream=ture的。请问如何流式打印返回的内容?请大侠指导。
我使用的python代码是这样的:
import requests
import json
url = "http://127.0.0.1:8080/v1/chat/completions"
headers = {"Content-Type": "application/json"}
data = {
"model": "gpt-3.5-turbo",
"messages": [{
"role": "user",
"content": "Hi"
}],
"stream":True
}
response = requests.post(url, headers=headers, data=json.dumps(data))
以及其他可能需要的
I tried the example in the README.
curl --location 'http://127.0.0.1:8080/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"stream": true
}'
The response is as following:
{"id":"xxxx","object":"chat.completion","created":0,"model":"gpt-3.5-turbo-0125","usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0},"choices":[{"index":0,"message":{"role":"assistant","content":"\"This is a test!\""},"finish_reason":null}]}
The tokens in the "usage" are all zero.
Can you fix it.
Thank for your great work.
Is it free on render?
测试了一下,用中文提问,返回的text是乱码。如果用英文,一切正常。大家是这种情况吗?
请求支持手动配置过盾代理 proxy
部署后打开网址只有提示{"message":"Hello, world!"},在vps上用curl输出结果如下:
curl --location 'http://127.0.0.1:8080/v1/chat/completions'
--header 'Content-Type: application/json'
--data '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"stream": true
}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"role":"assistant"},"index":0,"finish_reason":null}]}data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":"This"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" is"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" a"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":" test"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"content":"!"},"index":0,"finish_reason":null}]}
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-3.5-turbo-0125","choices":[{"delta":{},"index":0,"finish_reason":"stop"}]}
data: [DONE]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.