mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-12-22 21:09:21 +08:00
Merge pull request #16 from Yanyutin753/main
✨feat support /v1/models to be better use lobechat
This commit is contained in:
commit
4f500d51c5
@ -5,6 +5,7 @@ import chat from "./chat.ts";
|
||||
import images from "./images.ts";
|
||||
import ping from "./ping.ts";
|
||||
import token from './token.ts';
|
||||
import models from './models.ts';
|
||||
|
||||
export default [
|
||||
{
|
||||
@ -23,5 +24,6 @@ export default [
|
||||
chat,
|
||||
images,
|
||||
ping,
|
||||
token
|
||||
token,
|
||||
models
|
||||
];
|
56
src/api/routes/models.ts
Normal file
56
src/api/routes/models.ts
Normal file
@ -0,0 +1,56 @@
|
||||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
|
||||
prefix: '/v1',
|
||||
|
||||
get: {
|
||||
'/models': async () => {
|
||||
return {
|
||||
"data": [
|
||||
{
|
||||
"id": "qwen-max",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-max-longcontext",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-plus",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-turbo",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-vl-max",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-vl-plus",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-v1",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
},
|
||||
{
|
||||
"id": "qwen-v1-vision",
|
||||
"object": "model",
|
||||
"owned_by": "qwen-free-api"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user