mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-28 08:49:42 +02:00
feat: add gemini realtime and speaches integration
- Add gemini realtime support - Add speaches support for locally hosted LLMs
This commit is contained in:
parent
2eaaabd936
commit
ee2028eb2d
19 changed files with 531 additions and 185 deletions
|
|
@ -1,5 +1,7 @@
|
|||
"""LLM configuration resolution and token usage accumulation."""
|
||||
|
||||
import random
|
||||
|
||||
from api.db import db_client
|
||||
from api.db.models import WorkflowRunModel
|
||||
|
||||
|
|
@ -57,6 +59,8 @@ async def resolve_user_llm_config(
|
|||
|
||||
provider = llm_config.get("provider", "openai")
|
||||
api_key = llm_config.get("api_key", "")
|
||||
if isinstance(api_key, list):
|
||||
api_key = random.choice(api_key)
|
||||
model = llm_config.get("model", "gpt-4.1")
|
||||
|
||||
kwargs = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue