vue-llm 1.3.0 → 1.4.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/README.es.md +401 -0
- package/README.ja.md +401 -0
- package/README.md +18 -12
- package/README.pt-BR.md +401 -0
- package/README.ru.md +401 -0
- package/README.zh-CN.md +401 -0
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +16 -16
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.js +4 -3
- package/dist/providers/webllm.d.ts +14 -1
- package/dist/providers.cjs +5 -5
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +387 -352
- package/dist/server.d.ts +4 -0
- package/dist/utils/browser.d.ts +1 -0
- package/package.json +4 -2
package/dist/server.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export interface LLMHandlerOptions {
|
|
|
19
19
|
export interface ServerRateLimitOptions {
|
|
20
20
|
maxRequests: number;
|
|
21
21
|
interval?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Choose an authenticated identity or an address resolved by a trusted proxy.
|
|
24
|
+
* Example: `req => req.headers.get('x-user-id') ?? 'anonymous'`.
|
|
25
|
+
*/
|
|
22
26
|
key?: (request: Request) => string;
|
|
23
27
|
}
|
|
24
28
|
export interface LLMRequestBody {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isBrowserContext(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-llm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI SDK for Vue and Nuxt: streaming useChat, tool calling, Generative UI and in-browser WebGPU models for OpenAI, Anthropic, Gemini and Ollama.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"url": "git+https://github.com/dadashi44/vue-llm.git"
|
|
44
44
|
},
|
|
45
45
|
"bugs": "https://github.com/dadashi44/vue-llm/issues",
|
|
46
|
-
"homepage": "https://
|
|
46
|
+
"homepage": "https://vue-llm.js.org/",
|
|
47
47
|
"sideEffects": [
|
|
48
48
|
"*.css"
|
|
49
49
|
],
|
|
@@ -120,10 +120,12 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
+
"@amplitude/analytics-browser": "^2.48.1",
|
|
123
124
|
"@eslint/js": "^9.17.0",
|
|
124
125
|
"@lucide/vue": "^1.62.0",
|
|
125
126
|
"@mlc-ai/web-llm": "^0.2.86",
|
|
126
127
|
"@nuxt/kit": "^3.16.0",
|
|
128
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
127
129
|
"@tailwindcss/vite": "^4.3.3",
|
|
128
130
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
129
131
|
"@vue/devtools-api": "^7.7.9",
|