@weisiren000/oiiai 0.1.4 → 0.2.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/LICENSE +21 -0
- package/README.md +359 -27
- package/dist/index.d.mts +1647 -17
- package/dist/index.d.ts +1647 -17
- package/dist/index.js +2898 -1308
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2886 -1307
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weisiren000/oiiai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "统一的 AI Provider 接口封装,支持 OpenRouter、OpenAI、Anthropic 等",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"prepublishOnly": "npm run build",
|
|
22
22
|
"format": "prettier --write .",
|
|
23
23
|
"format:check": "prettier --check .",
|
|
24
|
+
"test": "vitest --run",
|
|
25
|
+
"test:watch": "vitest",
|
|
26
|
+
"verify": "tsx scripts/verify.ts",
|
|
24
27
|
"test:openrouter": "tsx src/__tests__/openrouter.test.ts",
|
|
25
28
|
"test:modelscope": "tsx src/__tests__/modelscope.test.ts",
|
|
26
29
|
"test:huggingface": "tsx src/__tests__/huggingface.test.ts",
|
|
@@ -45,10 +48,12 @@
|
|
|
45
48
|
"devDependencies": {
|
|
46
49
|
"@types/node": "^25.0.2",
|
|
47
50
|
"dotenv": "^16.0.0",
|
|
51
|
+
"fast-check": "^4.4.0",
|
|
48
52
|
"prettier": "^3.7.4",
|
|
49
53
|
"tsup": "^8.0.0",
|
|
50
54
|
"tsx": "^4.0.0",
|
|
51
|
-
"typescript": "^5.0.0"
|
|
55
|
+
"typescript": "^5.0.0",
|
|
56
|
+
"vitest": "^4.0.16"
|
|
52
57
|
},
|
|
53
58
|
"peerDependencies": {
|
|
54
59
|
"typescript": ">=5.0.0"
|