mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
fix: change type definition from enum to str for consistency
This commit is contained in:
parent
74b069354b
commit
e83f3a36d2
4 changed files with 147 additions and 150 deletions
|
|
@ -10,11 +10,7 @@ from api.db import db_client
|
|||
from api.db.models import UserModel
|
||||
from api.schemas.user_configuration import UserConfiguration
|
||||
from api.services.auth.stack_auth import stackauth
|
||||
from api.services.configuration.registry import (
|
||||
DograhSTTModel,
|
||||
DograhTTSModel,
|
||||
ServiceProviders,
|
||||
)
|
||||
from api.services.configuration.registry import ServiceProviders
|
||||
|
||||
|
||||
async def get_user(
|
||||
|
|
@ -242,18 +238,18 @@ async def create_user_configuration_with_mps_key(
|
|||
"llm": {
|
||||
"provider": ServiceProviders.DOGRAH.value,
|
||||
"api_key": service_key,
|
||||
"model": "default", # Default model
|
||||
"model": "default",
|
||||
},
|
||||
"tts": {
|
||||
"provider": ServiceProviders.DOGRAH.value,
|
||||
"api_key": service_key,
|
||||
"model": DograhTTSModel.DEFAULT.value, # Default model
|
||||
"voice": "default", # Default voice
|
||||
"model": "default",
|
||||
"voice": "default",
|
||||
},
|
||||
"stt": {
|
||||
"provider": ServiceProviders.DOGRAH.value,
|
||||
"api_key": service_key,
|
||||
"model": DograhSTTModel.DEFAULT.value, # Default model
|
||||
"model": "default",
|
||||
},
|
||||
}
|
||||
user_config = UserConfiguration(**configuration)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue