diff --git a/package.json b/package.json index 713f5d6..90fb5c9 100644 --- a/package.json +++ b/package.json @@ -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" } -} +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index eaaa7c8..e0bacd0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) + '║');