reddb-cli 0.1.2-next.43 → 0.1.2-next.46
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 +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,6 +92,24 @@ ASK 'summarize alerts' USING ollama MODEL 'llama3'
|
|
|
92
92
|
ASK 'summarize alerts' USING anthropic
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
+
Set a default provider so you can drop `USING` from every query:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# Set default provider -- no more USING on every query
|
|
99
|
+
curl -X POST http://127.0.0.1:8080/ai/credentials \
|
|
100
|
+
-d '{"provider":"groq","api_key":"gsk_xxx","default":true}'
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```sql
|
|
104
|
+
-- Now ASK uses groq by default
|
|
105
|
+
ASK 'what happened?'
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Export/import all config as JSON
|
|
110
|
+
curl http://127.0.0.1:8080/config
|
|
111
|
+
```
|
|
112
|
+
|
|
95
113
|
---
|
|
96
114
|
|
|
97
115
|
## SQL Extensions
|