@umituz/react-native-ai-groq-provider 1.0.17 → 1.0.18
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/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Sets up or updates the @umituz/react-native-ai-groq-provider package in a React Native app.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Groq AI Provider Setup Skill
|
|
6
|
-
|
|
7
|
-
When this workflow/skill is invoked, follow these explicit instructions to configure `@umituz/react-native-ai-groq-provider` for text-to-text language models.
|
|
8
|
-
|
|
9
|
-
## Step 1: Check and Update `package.json`
|
|
10
|
-
- Locate the target project's `package.json`.
|
|
11
|
-
- Check if `@umituz/react-native-ai-groq-provider` is installed.
|
|
12
|
-
- If missing: Install with `npm install @umituz/react-native-ai-groq-provider`.
|
|
13
|
-
- If outdated: Update it to the latest version.
|
|
14
|
-
|
|
15
|
-
## Step 2: Check Environment Variables
|
|
16
|
-
- Ensure that the Groq API key (usually `GROQ_API_KEY` or `EXPO_PUBLIC_GROQ_API_KEY`) is defined in the project's `.env.example` and `.env` files. If it is missing, prompt the user to add it.
|
|
17
|
-
|
|
18
|
-
## Step 3: Inject Provider Initialization
|
|
19
|
-
- Locate the app's initialization sequence or App layout.
|
|
20
|
-
- Import `initializeProvider` from `@umituz/react-native-ai-groq-provider`.
|
|
21
|
-
- Configure the provider early in the app lifecycle:
|
|
22
|
-
```typescript
|
|
23
|
-
import { initializeProvider } from '@umituz/react-native-ai-groq-provider';
|
|
24
|
-
|
|
25
|
-
// Inside initialization logic:
|
|
26
|
-
initializeProvider({
|
|
27
|
-
apiKey: process.env.EXPO_PUBLIC_GROQ_API_KEY || '',
|
|
28
|
-
});
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
// turbo
|
|
32
|
-
## Step 4: Run Pod Install (if applicable)
|
|
33
|
-
If targeting iOS and inside a bare minimum structure:
|
|
34
|
-
```bash
|
|
35
|
-
cd ios && pod install
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Step 5: Summary
|
|
39
|
-
Summarize the action: list which packages were upgraded/installed, the API keys ensured, and the file where the `initializeProvider` injection was completed.
|