Comments (13)
@chunzha1 有进一步结果再反馈
from kimi-free-api.
@chunzha1 你可以先通过telnet检查一下服务器和kimi的连接。
from kimi-free-api.
@chunzha1 你可以先通过telnet检查一下服务器和kimi的连接。
好像是连上了
telnet kimi.moonshot.cn 443
Trying 103.143.17.170...
Connected to 4e219e08b833a913b8545619c61eb96a.volcwaf.com.
Escape character is '^]'.
from kimi-free-api.
@chunzha1 那应该是可以通的,再重试一下看看吧,你可以尝试curl https://kimi.moonshot.cn/api/auth/token/refresh,看能否获得响应。
from kimi-free-api.
@chunzha1 那应该是可以通的,再重试一下看看吧,你可以尝试curl https://kimi.moonshot.cn/api/auth/token/refresh,看能否获得响应。
能够获得响应
curl -H "Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6Ik" https://kimi.moonshot.cn/api/auth/token/refresh
{"access_token":"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1c2VyLWNlbnRlciIsImV4cCI6MTcxMTQ0g","refresh_token":"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1c2VyLWNlbnRlciIsImV4cCI6MTc"}
但是调用仍然是一样的错误
curl http://10.0.0.4:8083/v1/chat/completions -H 'Content-Type: application/json' -H 'Authorization: Bearer ' -d '{ "model": "gpt-4", "messages": [ {"role": "user", "content":"Say this is a test"}]}'
{"code":-1,"message":"Internal error","data":null}
from kimi-free-api.
@chunzha1 我看Authorization: Bearer 后面没有提供refresh_token,加上看看
from kimi-free-api.
@chunzha1 我看Authorization: Bearer 后面没有提供refresh_token,加上看看
我这里应该是加上了,只是我贴的时候去掉了, eyJhbGciOiJIUzUxMiIsInR5cCI6Ik是refresh_token的前面部分;还是说需要其他额外的?
from kimi-free-api.
@chunzha1 我看你贴的容器日志中Refresh token是空的,说明Authorization头没有正确传值
from kimi-free-api.
@chunzha1 我看你贴的容器日志中Refresh token是空的,说明Authorization头没有正确传值
这里是我贴的时候手动去掉了
from kimi-free-api.
@chunzha1 那可能得检查容器的网络是否正常,目前是没遇到过refresh超时的情况
from kimi-free-api.
@chunzha1 那可能得检查容器的网络是否正常,目前是没遇到过refresh超时的情况
忘了说了,我不是docker部署的,是原生部署的方式;手动改了端口8083然后build。服务器网络应该是正常,目前其他端口的项目还能访问。是否还有其他排查方向?
from kimi-free-api.
@chunzha1 可以重试看看,超时通常是暂时性的,如果在宿主机网络上表现应该一致
from kimi-free-api.
@chunzha1 可以重试看看,超时通常是暂时性的,如果在宿主机网络上表现应该一致
好吧~感谢回复!我晚点再试试
from kimi-free-api.
Related Issues (20)
- 大佬能否增加一下Vercel的部署教程? HOT 2
- 可以增加代理池功能吗 HOT 1
- Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. HOT 2
- 在Dify中无法和图片对话 HOT 2
- paper
- DNS查询错误 HOT 1
- ocr能力是哪里来的啊 HOT 1
- 接口好像不支持非stream的模式 HOT 1
- api无法使用 HOT 9
- vercel免费版增加到60s啦 HOT 1
- 我http请求发送成功了,但是返回值好像不太对 HOT 1
- ERR! chatProcess Error FetchError: request to http://localhost:8000/v1/chat/completions failed, reason: connect ECONNREFUSED ::1:8000 HOT 1
- 怎么接入本地的oneapi中,配合fastgpt使用? HOT 1
- 怎么使用python直接在代码里发起http请求呢 HOT 2
- 如何兼容openai的调用方法? HOT 11
- docker同时部署qwen & kimi HOT 2
- 功能建议:通过网关整合所有的模型到一个docker镜像里面,通过 参数"model": "XXX"来调用不同的LLM,支持对用户token的管理
- 图片处理不到啊 HOT 1
- 是不是不能用了?一直无法连接上 HOT 1
- Vercel 部署后访问 404 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kimi-free-api.