@inference-gateway/cli 0.188.0 → 0.189.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.md +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -296,6 +296,21 @@ OPENAI_API_KEY=your_key_here
|
|
|
296
296
|
DEEPSEEK_API_KEY=your_key_here
|
|
297
297
|
```
|
|
298
298
|
|
|
299
|
+
Provider keys resolve in this order, first hit wins: the system environment, the
|
|
300
|
+
project `.env`, then the userspace fallback `~/.infer/auth.json` - a flat JSON
|
|
301
|
+
map of provider key env vars, so you can keep keys in one place across all
|
|
302
|
+
projects (or run `infer` outside any project):
|
|
303
|
+
|
|
304
|
+
```json
|
|
305
|
+
{
|
|
306
|
+
"ANTHROPIC_API_KEY": "sk-ant-...",
|
|
307
|
+
"OPENAI_API_KEY": "sk-..."
|
|
308
|
+
}
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
A missing `auth.json` changes nothing, and a malformed one is ignored with a
|
|
312
|
+
logged warning. Keep the file private (`chmod 600 ~/.infer/auth.json`).
|
|
313
|
+
|
|
299
314
|
3. **Start chatting**:
|
|
300
315
|
|
|
301
316
|
```bash
|