@voltx/ai 0.4.2 → 0.4.5

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Promptly AI Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs CHANGED
@@ -945,7 +945,7 @@ registerProvider("google", createGoogleProvider);
945
945
  registerProvider("cerebras", createCerebrasProvider);
946
946
  registerProvider("openrouter", createOpenRouterProvider);
947
947
  registerProvider("ollama", createOllamaProvider);
948
- var VERSION = "0.4.2";
948
+ var VERSION = "0.4.5";
949
949
  // Annotate the CommonJS export names for ESM import in node:
950
950
  0 && (module.exports = {
951
951
  VERSION,
package/dist/index.d.cts CHANGED
@@ -321,6 +321,6 @@ declare function registerProvider(name: string, factory: (config: ProviderConfig
321
321
  declare function getProvider(name: string, config?: ProviderConfig): AIProvider;
322
322
  declare function resolveModel(model: string | ModelRef): ModelRef;
323
323
 
324
- declare const VERSION = "0.4.2";
324
+ declare const VERSION = "0.4.5";
325
325
 
326
326
  export { type AIProvider, type ContentPart, type EmbedManyOptions, type EmbedManyResult, type EmbedOptions, type EmbedResult, type FinishReason, type GenerateObjectOptions, type GenerateObjectResult, type GenerateTextOptions, type GenerateTextResult, type ImageContent, type Message, type ModelRef, type ParsedToolCall, type ProviderConfig, type StreamChunk, type StreamTextOptions, type StreamTextResult, type TextContent, type TokenUsage, type ToolCallResult, type ToolDefinition, VERSION, anthropic, cerebras, createAnthropicProvider, createCerebrasProvider, createGoogleProvider, createOllamaProvider, createOpenAIProvider, createOpenRouterProvider, embed, embedMany, generateObject, generateText, getProvider, google, ollama, openai, openrouter, registerProvider, resolveModel, streamText };
package/dist/index.d.ts CHANGED
@@ -321,6 +321,6 @@ declare function registerProvider(name: string, factory: (config: ProviderConfig
321
321
  declare function getProvider(name: string, config?: ProviderConfig): AIProvider;
322
322
  declare function resolveModel(model: string | ModelRef): ModelRef;
323
323
 
324
- declare const VERSION = "0.4.2";
324
+ declare const VERSION = "0.4.5";
325
325
 
326
326
  export { type AIProvider, type ContentPart, type EmbedManyOptions, type EmbedManyResult, type EmbedOptions, type EmbedResult, type FinishReason, type GenerateObjectOptions, type GenerateObjectResult, type GenerateTextOptions, type GenerateTextResult, type ImageContent, type Message, type ModelRef, type ParsedToolCall, type ProviderConfig, type StreamChunk, type StreamTextOptions, type StreamTextResult, type TextContent, type TokenUsage, type ToolCallResult, type ToolDefinition, VERSION, anthropic, cerebras, createAnthropicProvider, createCerebrasProvider, createGoogleProvider, createOllamaProvider, createOpenAIProvider, createOpenRouterProvider, embed, embedMany, generateObject, generateText, getProvider, google, ollama, openai, openrouter, registerProvider, resolveModel, streamText };
package/dist/index.js CHANGED
@@ -899,7 +899,7 @@ registerProvider("google", createGoogleProvider);
899
899
  registerProvider("cerebras", createCerebrasProvider);
900
900
  registerProvider("openrouter", createOpenRouterProvider);
901
901
  registerProvider("ollama", createOllamaProvider);
902
- var VERSION = "0.4.2";
902
+ var VERSION = "0.4.5";
903
903
  export {
904
904
  VERSION,
905
905
  anthropic,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltx/ai",
3
- "version": "0.4.2",
3
+ "version": "0.4.5",
4
4
  "description": "VoltX AI — Unified LLM provider abstraction with streaming, tool calling, and structured output",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -13,12 +13,9 @@
13
13
  "require": "./dist/index.cjs"
14
14
  }
15
15
  },
16
- "files": ["dist"],
17
- "scripts": {
18
- "build": "tsup src/index.ts --format cjs,esm --dts --clean",
19
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
20
- "clean": "rm -rf dist"
21
- },
16
+ "files": [
17
+ "dist"
18
+ ],
22
19
  "dependencies": {
23
20
  "zod": "^3.23.0"
24
21
  },
@@ -26,7 +23,16 @@
26
23
  "tsup": "^8.0.0",
27
24
  "typescript": "^5.7.0"
28
25
  },
29
- "keywords": ["voltx", "ai", "llm", "openai", "anthropic", "cerebras", "streaming", "tool-calling"],
26
+ "keywords": [
27
+ "voltx",
28
+ "ai",
29
+ "llm",
30
+ "openai",
31
+ "anthropic",
32
+ "cerebras",
33
+ "streaming",
34
+ "tool-calling"
35
+ ],
30
36
  "license": "MIT",
31
37
  "repository": {
32
38
  "type": "git",
@@ -34,5 +40,10 @@
34
40
  "directory": "packages/ai"
35
41
  },
36
42
  "homepage": "https://voltx.co.in",
37
- "author": "Promptly AI Team"
43
+ "author": "Promptly AI Team",
44
+ "scripts": {
45
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
46
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
47
+ "clean": "rm -rf dist"
48
+ }
38
49
  }