mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
feat: add config v2 to simplify billing (#428)
* feat: add model config v2 * chore: centralize user org selection * chore: move preferences to platform settings * fix: decouple org preference and ai model preferences
This commit is contained in:
parent
49e68b49d5
commit
cdbd06c8d9
42 changed files with 5135 additions and 264 deletions
|
|
@ -11,7 +11,7 @@ from api.services.configuration.registry import (
|
|||
)
|
||||
|
||||
|
||||
class UserConfiguration(BaseModel):
|
||||
class EffectiveAIModelConfiguration(BaseModel):
|
||||
llm: LLMConfig | None = None
|
||||
stt: STTConfig | None = None
|
||||
tts: TTSConfig | None = None
|
||||
|
|
@ -31,3 +31,7 @@ class UserConfiguration(BaseModel):
|
|||
if isinstance(realtime, dict) and not realtime.get("api_key"):
|
||||
data.pop("realtime", None)
|
||||
return data
|
||||
|
||||
|
||||
# Backward-compatible alias for legacy persistence and existing call sites.
|
||||
UserConfiguration = EffectiveAIModelConfiguration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue