Giter Club home page Giter Club logo

Comments (13)

Vinlic avatar Vinlic commented on June 28, 2024 1

@chunzha1 有进一步结果再反馈

from kimi-free-api.

Vinlic avatar Vinlic commented on June 28, 2024

@chunzha1 你可以先通过telnet检查一下服务器和kimi的连接。

from kimi-free-api.

chunzha1 avatar chunzha1 commented on June 28, 2024

@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.

Vinlic avatar Vinlic commented on June 28, 2024

@chunzha1 那应该是可以通的,再重试一下看看吧,你可以尝试curl https://kimi.moonshot.cn/api/auth/token/refresh,看能否获得响应。

from kimi-free-api.

chunzha1 avatar chunzha1 commented on June 28, 2024

@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.

Vinlic avatar Vinlic commented on June 28, 2024

@chunzha1 我看Authorization: Bearer 后面没有提供refresh_token,加上看看

from kimi-free-api.

chunzha1 avatar chunzha1 commented on June 28, 2024

@chunzha1 我看Authorization: Bearer 后面没有提供refresh_token,加上看看

我这里应该是加上了,只是我贴的时候去掉了, eyJhbGciOiJIUzUxMiIsInR5cCI6Ik是refresh_token的前面部分;还是说需要其他额外的?

from kimi-free-api.

Vinlic avatar Vinlic commented on June 28, 2024

@chunzha1 我看你贴的容器日志中Refresh token是空的,说明Authorization头没有正确传值
image

from kimi-free-api.

chunzha1 avatar chunzha1 commented on June 28, 2024

@chunzha1 我看你贴的容器日志中Refresh token是空的,说明Authorization头没有正确传值 image

这里是我贴的时候手动去掉了

from kimi-free-api.

Vinlic avatar Vinlic commented on June 28, 2024

@chunzha1 那可能得检查容器的网络是否正常,目前是没遇到过refresh超时的情况

from kimi-free-api.

chunzha1 avatar chunzha1 commented on June 28, 2024

@chunzha1 那可能得检查容器的网络是否正常,目前是没遇到过refresh超时的情况

忘了说了,我不是docker部署的,是原生部署的方式;手动改了端口8083然后build。服务器网络应该是正常,目前其他端口的项目还能访问。是否还有其他排查方向?

from kimi-free-api.

Vinlic avatar Vinlic commented on June 28, 2024

@chunzha1 可以重试看看,超时通常是暂时性的,如果在宿主机网络上表现应该一致

from kimi-free-api.

chunzha1 avatar chunzha1 commented on June 28, 2024

@chunzha1 可以重试看看,超时通常是暂时性的,如果在宿主机网络上表现应该一致

好吧~感谢回复!我晚点再试试

from kimi-free-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.