mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-07-14 16:32:14 +02:00
feat: add openai_base_url config for LiteLLM/OpenAI-compatible proxy support
This commit is contained in:
parent
945375eca8
commit
89c71a3dde
9 changed files with 383 additions and 296 deletions
|
|
@ -119,6 +119,17 @@ BEGIN
|
|||
END IF;
|
||||
END $$;
|
||||
|
||||
-- Migration: Add AI base URL columns to users if they don't exist
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM information_schema.columns
|
||||
WHERE table_name = 'users' AND column_name = 'openai_base_url'
|
||||
) THEN
|
||||
ALTER TABLE users ADD COLUMN openai_base_url VARCHAR(512);
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
-- Price history table
|
||||
CREATE TABLE IF NOT EXISTS price_history (
|
||||
id SERIAL PRIMARY KEY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue