Skip to content

Commit f38a6fb

Browse files
committed
feat: all in one
- no tests - no modules - no model - no cache - no params schema
1 parent 22c7e80 commit f38a6fb

File tree

9 files changed

+1535
-1
lines changed

9 files changed

+1535
-1
lines changed

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Anthropic Vertex AI configuration
2+
ANTHROPIC_VERTEX_PROJECT_ID=
3+
CLOUD_ML_REGION=us-east5
4+
GOOGLE_APPLICATION_CREDENTIALS=./anthropic-vertex-credentials.json
5+
6+
# Network proxy settings
7+
HTTP_PROXY=
8+
HTTPS_PROXY=
9+
10+
# Possible values: `continue` | `remove`
11+
# default value: `remove`
12+
ENSURE_FIRST_MODE=continue

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
132+
anthropic-vertex-credentials.json

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
# gcp-calude-openai-api-server
1+
# gcp-claude-openai-api-server
2+
3+
this project convert [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) to [OpenAI API](https://platform.openai.com/docs/api-reference)
4+
5+
# usage
6+
WIP

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "gcp-claude-openai-api-server",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "./src/server.ts",
6+
"scripts": {
7+
"start": "tsx ./src/server.ts"
8+
},
9+
"keywords": [],
10+
"author": "zhzluke96",
11+
"license": "AGPL-3.0-only",
12+
"dependencies": {
13+
"@anthropic-ai/vertex-sdk": "^0.4.0",
14+
"@types/node": "^20.14.9",
15+
"dotenv": "^16.4.5",
16+
"fastify": "^4.28.1",
17+
"fastify-sse-v2": "^4.0.0",
18+
"http-proxy-agent": "^7.0.2",
19+
"https-proxy-agent": "^7.0.5",
20+
"tslib": "^2.6.3",
21+
"tsx": "^4.16.2",
22+
"typescript": "^5.5.3"
23+
}
24+
}

0 commit comments

Comments
 (0)