@allem-sdk/ai 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +13 -6
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
+ <a href="https://www.npmjs.com/package/@allem-sdk/ai"><img src="https://img.shields.io/npm/v/@allem-sdk/ai.svg" alt="npm version" /></a>
6
7
  <a href="https://github.com/kingofmit/allem-sdk/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License" /></a>
7
8
  <img src="https://img.shields.io/badge/react-19-61dafb" alt="React 19" />
8
9
  <img src="https://img.shields.io/badge/typescript-strict-blue" alt="TypeScript" />
@@ -87,6 +88,7 @@ export const POST = createAllemChatHandler({
87
88
  |--------|------|-------------|
88
89
  | `useAllemChat` | Hook | Chat hook with streaming, provider context, and message history |
89
90
  | `useAllemCompletion` | Hook | Text completion hook for single-turn prompts |
91
+ | `useAllemAIConfig` | Hook | Access the current provider context values (api, provider, model, headers) |
90
92
  | `AllemAIProvider` | Component | React context provider for default API and provider config |
91
93
  | `createAllemChatHandler` | Server | Server-side API route handler with multi-provider routing |
92
94
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@allem-sdk/ai",
3
- "version": "0.1.1",
4
- "description": "AI hooks for React useChat, useAgent, useStreaming. Built on Vercel AI SDK.",
3
+ "version": "0.1.2",
4
+ "description": "AI chat and completion hooks for React. Multi-provider streaming (Google Gemini, Anthropic Claude, OpenAI GPT). Built on Vercel AI SDK v6.",
5
5
  "license": "MIT",
6
6
  "author": "Ahmed Allem",
7
7
  "main": "./dist/index.js",
@@ -68,11 +68,18 @@
68
68
  "allem-sdk",
69
69
  "ai",
70
70
  "react",
71
- "hooks",
72
- "useChat",
73
- "useAgent",
71
+ "react-hooks",
72
+ "chatbot",
73
+ "streaming",
74
74
  "vercel-ai-sdk",
75
- "llm"
75
+ "ai-sdk",
76
+ "llm",
77
+ "google-gemini",
78
+ "anthropic-claude",
79
+ "openai",
80
+ "multi-provider",
81
+ "typescript",
82
+ "nextjs"
76
83
  ],
77
84
  "publishConfig": {
78
85
  "access": "public"