iim api
v1.1.0
智元IIM is an open source web version of live chat system, and also has AI chat and dialogue functions. This project is developed based on Lumen IM using the GoFrame framework.
curl --location ' https://api.iim.ai/v1/chat/completions '
--header ' Content-Type: application/json '
--header ' Authorization: Bearer sk-IIMGD1unkIVxDbCi0ErDjnM0YwVuDUbJOs0XMkTtMJxAEg0N '
--data ' {
"model": "gpt-3.5-turbo-16k",
"stream": true,
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "hi"}
]
} 'curl --location ' https://api.iim.ai/v1/token/usage '
--header ' Authorization: Bearer sk-IIMGD1unkIVxDbCi0ErDjnM0YwVuDUbJOs0XMkTtMJxAEg0N 'Response results
{
"code" : 200 ,
"message" : " success " ,
"data" : {
"usage_count" : 1 ,
"used_tokens" : 11 ,
"total_tokens" : 10000
}
}| storehouse | front end | rear end | API |
|---|---|---|---|
| Main library | https://github.com/iimeta/iim-web | https://github.com/iimeta/iim-client | https://github.com/iimeta/iim-api |
| Code Cloud | https://gitee.com/iimeta/iim-web | https://gitee.com/iimeta/iim-client | https://gitee.com/iimeta/iim-api |