Comments (7)
@YP1X
I confirm that the service is working normally, please check whether your token is wrong.
from kimi-free-api.
Error: Not found because of proxy error: Error: Client network socket disconnected before secure TLS connection was established (Status Code: 404)
I believe token is right this time.
from kimi-free-api.
I am using botpress cloud platform to build bots.
from kimi-free-api.
@YP1X Can you provide a screenshot of the container log of kimi-free-api? I connected through Dify and found no problem.
from kimi-free-api.
404 didn't reoccur. I am not a dev so maybe it's a coding problem.
code:
const kimi_API_KEY = env.kimiFreeKey;
const data = {
// 模型名称随意填写,如果不希望输出检索过程模型名称请包含silent_search
"model": "kimi",
"messages": [
{
"role": "user",
"content": `${workflow.message}`
}
],
// 是否开启联网搜索,默认false
"use_search": true,
// 如果使用SSE流请设置为true,默认false
"stream": false
}
async function getKimiMessage() {
try {
const response = await axios.post('https://api.moonshot.cn/v1/chat/completions', data, {
headers: {
Authorization: `Bearer ${kimi_API_KEY}`,
'Content-Type': 'application/json',
},
});
workflow.response = response.data.choices[0].message.content;
return workflow.response;
} catch (error) {
console.error(error);
throw error;
}
}
await getKimiMessage()
.then((message) => {
console.log('Kimi message:', message);
})
.catch((error) => {
console.error('Error:', error);
});
from kimi-free-api.
@YP1X You may have mistaken the function of kimi-free-api. This is not the official API channel of kimi moonshot ai, but reverses the kimi.ai page function and converts it into an API interface compatible with openai. If you want to use the official moonshot ai interface, please go to https://platform.moonshot.cn/. If you want to use kimi-free-api, please deploy the service yourself and change the proxy address and port, and then change API_KEY to refresh_token.
from kimi-free-api.
I may try Dify. THX for your note.
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.