@jhzhu89/m2r 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +51646 -0
- package/package.json +52 -4
- package/README.md +0 -6
package/package.json
CHANGED
|
@@ -1,8 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhzhu89/m2r",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Anthropic Messages API to Azure OpenAI Responses API proxy",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Jiahao Zhu <jiahzhu@outlook.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/jhzhu89/m2r.git"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"anthropic",
|
|
14
|
+
"openai",
|
|
15
|
+
"azure",
|
|
16
|
+
"proxy",
|
|
17
|
+
"claude",
|
|
18
|
+
"gpt"
|
|
19
|
+
],
|
|
20
|
+
"bin": {
|
|
21
|
+
"m2r": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "bun run --watch src/index.ts",
|
|
28
|
+
"build": "bun build src/index.ts --outdir dist --target bun",
|
|
29
|
+
"start": "bun dist/index.js",
|
|
30
|
+
"format": "prettier --write src test",
|
|
31
|
+
"lint": "eslint src test",
|
|
32
|
+
"lint:fix": "eslint src test --fix",
|
|
33
|
+
"test": "bun test ./test/unit",
|
|
34
|
+
"test:integration": "bun test ./test/integration",
|
|
35
|
+
"test:all": "bun test ./test",
|
|
36
|
+
"test:watch": "bun test --watch ./test/unit"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@anthropic-ai/sdk": "^0.71.2",
|
|
40
|
+
"@azure/identity": "^4.13.0",
|
|
41
|
+
"gpt-tokenizer": "^3.4.0",
|
|
42
|
+
"hono": "^4.11.3",
|
|
43
|
+
"openai": "^6.15.0",
|
|
44
|
+
"pino": "^10.1.0",
|
|
45
|
+
"zod": "^4.3.4"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.39.2",
|
|
49
|
+
"@types/bun": "latest",
|
|
50
|
+
"eslint": "^9.39.2",
|
|
51
|
+
"pino-pretty": "^13.1.3",
|
|
52
|
+
"prettier": "^3.7.4",
|
|
53
|
+
"typescript": "^5.9.3",
|
|
54
|
+
"typescript-eslint": "^8.51.0"
|
|
7
55
|
}
|
|
8
56
|
}
|