Spaces:
Runtime error
Runtime error
Download src/lib/db/migrations/009_requested_model.sql from YOGESHJIO5770/ai_api: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/YOGESHJIO5770/ai_api/resolve/main/src/lib/db/migrations/009_requested_model.sql
- Command line
-
hf download hf://spaces/YOGESHJIO5770/ai_api/src/lib/db/migrations/009_requested_model.sql
-
curl -L -o 009_requested_model.sql https://huggingface.co/spaces/YOGESHJIO5770/ai_api/resolve/main/src/lib/db/migrations/009_requested_model.sql
532 Bytes
| -- Migration 009: Add requested_model to call_logs for billing transparency | |
| -- Tracks the model the client *asked* for vs the model that was *actually routed*. | |
| -- Needed when a combo falls back: requested_model ≠ model in call_logs. | |
| -- Ref: sub2api commits 0b845c25 + 4edcfe1f (T01 sub2api gap analysis) | |
| ALTER TABLE call_logs ADD COLUMN requested_model TEXT DEFAULT NULL; | |
| -- Index for filtering/aggregating by requested_model in Analytics | |
| CREATE INDEX IF NOT EXISTS idx_call_logs_requested_model | |
| ON call_logs(requested_model); | |