rn-ai 0.2.8 → 0.3.1
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/cli.js +25 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -105,24 +105,36 @@ COHERE_API_KEY=""
|
|
|
105
105
|
|
|
106
106
|
# ByteScale secret (optional) https://bytescale.com
|
|
107
107
|
BYTESCALE_API_KEY=""
|
|
108
|
+
|
|
109
|
+
# Replicate secret (optional) https://replicate.com/
|
|
110
|
+
REPLICATE_KEY=""
|
|
111
|
+
|
|
112
|
+
# Gemini API Key (optional) https://makersuite.google.com
|
|
113
|
+
GEMINI_API_KEY=""
|
|
108
114
|
`
|
|
109
115
|
|
|
110
116
|
if (withEnv === 'yes') {
|
|
111
|
-
console.log('Get OpenAI API Key at https://platform.openai.com
|
|
117
|
+
console.log('Get OpenAI API Key at https://platform.openai.com')
|
|
112
118
|
const openai_api_key = await input({ message: "OpenAI API Key" })
|
|
113
119
|
|
|
114
|
-
console.log('Get Fal API Key at https://www.fal.ai
|
|
120
|
+
console.log('Get Fal API Key at https://www.fal.ai')
|
|
115
121
|
const fal_api_key = await input({ message: "Fal API Key" })
|
|
116
|
-
|
|
117
|
-
console.log('(optional) Get Anthropic API Key at https://console.anthropic.com
|
|
122
|
+
|
|
123
|
+
console.log('(optional) Get Anthropic API Key at https://console.anthropic.com')
|
|
118
124
|
const anthropic_api_key = await input({ message: "Anthropic API Key" })
|
|
119
125
|
|
|
120
|
-
console.log('(optional) Get Cohere API Key at https://cohere.com
|
|
126
|
+
console.log('(optional) Get Cohere API Key at https://cohere.com')
|
|
121
127
|
const cohere_api_key = await input({ message: "Cohere API Key" })
|
|
122
128
|
|
|
123
|
-
console.log('(optional) Get Bytescale API Key at https://bytescale.com
|
|
129
|
+
console.log('(optional) Get Bytescale API Key at https://bytescale.com')
|
|
124
130
|
const bytescale_api_key = await input({ message: "Bytescale API Key" })
|
|
125
|
-
|
|
131
|
+
|
|
132
|
+
console.log('(optional) Get Replicate API Key at https://replicate.com')
|
|
133
|
+
const replicate_api_key = await input({ message: "Replicate API Key" })
|
|
134
|
+
|
|
135
|
+
console.log('(optional) Get Gemini API Key at https://makersuite.google.com')
|
|
136
|
+
const gemeni_api_key = await input({ message: "Gemini API Key" })
|
|
137
|
+
|
|
126
138
|
envs = `
|
|
127
139
|
# environment, either PRODUCTION or DEVELOPMENT
|
|
128
140
|
ENVIRONMENT="PRODUCTION"
|
|
@@ -141,6 +153,12 @@ COHERE_API_KEY="${cohere_api_key}"
|
|
|
141
153
|
|
|
142
154
|
# FAL
|
|
143
155
|
FAL_API_KEY="${fal_api_key}"
|
|
156
|
+
|
|
157
|
+
# Replicate secret
|
|
158
|
+
REPLICATE_KEY="${replicate_api_key}"
|
|
159
|
+
|
|
160
|
+
# Gemini API Key
|
|
161
|
+
# GEMINI_API_KEY=${gemeni_api_key}
|
|
144
162
|
`
|
|
145
163
|
}
|
|
146
164
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rn-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Full stack mobile framework for building cross-platform mobile AI apps supporting image processing, real-time / streaming text and chat UIs, and image uploads with multiple service providers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "cli.js",
|