better-ccflare 3.3.19 → 3.3.20
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 +13 -1
- package/dist/better-ccflare +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -184,6 +184,10 @@ SESSION_DURATION_MS=18000000 # Session duration in milliseconds (5 hou
|
|
|
184
184
|
RETRY_ATTEMPTS=3 # Number of retry attempts
|
|
185
185
|
RETRY_DELAY_MS=1000 # Initial retry delay in milliseconds
|
|
186
186
|
RETRY_BACKOFF=2 # Retry backoff multiplier
|
|
187
|
+
|
|
188
|
+
# Storage
|
|
189
|
+
STORE_PAYLOADS=false # Disable storing request/response bodies (reduces DB size and memory usage)
|
|
190
|
+
# Token counts, costs, model, status and timing are still recorded
|
|
187
191
|
```
|
|
188
192
|
|
|
189
193
|
**Security Notes**:
|
|
@@ -226,6 +230,9 @@ LOG_FORMAT=pretty
|
|
|
226
230
|
# Database configuration
|
|
227
231
|
DATA_RETENTION_DAYS=7
|
|
228
232
|
REQUEST_RETENTION_DAYS=365
|
|
233
|
+
|
|
234
|
+
# Storage (set to false to skip storing request/response bodies, reducing DB size and memory pressure)
|
|
235
|
+
STORE_PAYLOADS=true
|
|
229
236
|
```
|
|
230
237
|
|
|
231
238
|
**Usage with different deployment methods**:
|
|
@@ -281,6 +288,10 @@ docker exec -it better-ccflare better-ccflare --list
|
|
|
281
288
|
|
|
282
289
|
See [DOCKER.md](DOCKER.md) for detailed Docker documentation.
|
|
283
290
|
|
|
291
|
+
### Systemd Deployment
|
|
292
|
+
|
|
293
|
+
For running better-ccflare as a native systemd service on Linux (without Docker), see the [Systemd Deployment Guide](docs/systemd.md). It covers unit file configuration, memory management with `--smol`, restart policies, and a preflight script that prevents `BUN_JSC_*` environment variable crashes.
|
|
294
|
+
|
|
284
295
|
## Configure Claude SDK
|
|
285
296
|
|
|
286
297
|
### Option 1: Using Claude CLI with OAuth (Recommended if you have Claude Pro/Team)
|
|
@@ -647,6 +658,7 @@ We recommend using one of the workarounds above until the npm bug is fixed.
|
|
|
647
658
|
- **Universal API Format** - Use OpenAI-compatible providers with Claude API format
|
|
648
659
|
- **Automatic Format Conversion** - Seamless conversion between Anthropic and OpenAI request/response formats
|
|
649
660
|
- **Model Mapping** - Map Claude models (Opus, Sonnet, Haiku) to equivalent OpenAI models
|
|
661
|
+
- **Model Fallbacks** - Automatically retry with a fallback model when the requested model is unavailable (e.g., fallback from Opus to Sonnet on Pro subscriptions)
|
|
650
662
|
- **Streaming Support** - Full support for streaming responses from OpenAI-compatible providers
|
|
651
663
|
- **API Key Authentication** - Secure API key management for OpenAI-compatible providers
|
|
652
664
|
- **Cost Tracking** - Automatic cost calculation for usage monitoring and budgeting
|
|
@@ -732,7 +744,7 @@ Inspired by [snipeship/ccflare](https://github.com/snipeship/ccflare) - thanks f
|
|
|
732
744
|
- [@bitcoin4cashqc](https://github.com/bitcoin4cashqc) - SSL/HTTPS support implementation with comprehensive documentation
|
|
733
745
|
- [@anonym-uz](https://github.com/anonym-uz) - Critical auto-pause bug fix, analytics performance optimizations, request body truncation, and incremental vacuum implementation
|
|
734
746
|
- [@makhweeb](https://github.com/makhweeb) - Enhanced request handling and analytics improvements
|
|
735
|
-
- [@jw409](https://github.com/jw409) - Fixed OAuth account addition in WSL2 and compiled binaries by replacing unreliable prompt() with readline
|
|
747
|
+
- [@jw409](https://github.com/jw409) - Fixed OAuth account addition in WSL2 and compiled binaries by replacing unreliable prompt() with readline; systemd deployment guide, BUN_JSC_* crash loop analysis, and preflight environment validator (PR #106)
|
|
736
748
|
- [@materemias](https://github.com/materemias) - Testing and validation of Vertex AI provider implementation, thorough debugging of OAuth API key authentication (issue #54), requesting and validating AWS Bedrock support (issue #49), and extensive testing of new releases and features
|
|
737
749
|
- [@tqtensor](https://github.com/tqtensor) - Comprehensive memory leak fix preventing OOM kills with smart chunk capping, memory monitoring, and optimized cleanup (PR #67)
|
|
738
750
|
- [@lunetics](https://github.com/lunetics) - Force-reset rate limit feature allowing manual clearing of stale rate-limit locks via API, CLI, and dashboard with immediate usage polling (PR #68), OOM kill prevention with periodic data retention cleanup, 3-day default retention, and time-scoped stats queries (PR #70), model registry sync removing retired models and adding sonnet-4.6 CLI shortcut (PR #71)
|
package/dist/better-ccflare
CHANGED
|
Binary file
|
package/package.json
CHANGED