mirror of
https://github.com/7836246/cursor2api.git
synced 2026-09-03 07:20:02 +08:00
chore: 统一所有版本号至 v2.3.0
- package.json: 2.0.0 → 2.3.0 - src/index.ts: 健康检查、根路径、启动 banner 三处版本号同步更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cursor2api",
|
||||
"version": "2.0.0",
|
||||
"version": "2.3.0",
|
||||
"description": "Proxy Cursor docs AI to Anthropic Messages API for Claude Code",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
@@ -23,4 +23,4 @@
|
||||
"tsx": "^4.19.0",
|
||||
"typescript": "^5.8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,14 +48,14 @@ app.get('/v1/models', listModels);
|
||||
|
||||
// 健康检查
|
||||
app.get('/health', (_req, res) => {
|
||||
res.json({ status: 'ok', version: '2.0.0' });
|
||||
res.json({ status: 'ok', version: '2.3.0' });
|
||||
});
|
||||
|
||||
// 根路径
|
||||
app.get('/', (_req, res) => {
|
||||
res.json({
|
||||
name: 'cursor2api',
|
||||
version: '2.0.0',
|
||||
version: '2.3.0',
|
||||
description: 'Cursor Docs AI → Anthropic & OpenAI API Proxy',
|
||||
endpoints: {
|
||||
anthropic_messages: 'POST /v1/messages',
|
||||
@@ -75,7 +75,7 @@ app.get('/', (_req, res) => {
|
||||
app.listen(config.port, () => {
|
||||
console.log('');
|
||||
console.log(' ╔══════════════════════════════════════╗');
|
||||
console.log(' ║ Cursor2API v2.0.0 ║');
|
||||
console.log(' ║ Cursor2API v2.3.0 ║');
|
||||
console.log(' ╠══════════════════════════════════════╣');
|
||||
console.log(` ║ Server: http://localhost:${config.port} ║`);
|
||||
console.log(' ║ Model: ' + config.cursorModel.padEnd(26) + '║');
|
||||
|
||||
Reference in New Issue
Block a user