Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ services:
- DOCKER_HOST=unix://var/run/docker.sock
- DEVICE_TYPE=${DEVICE_TYPE}
- WHISPER_LIVE_URL=ws://whisperlive-cpu:9090/ws # Direct connection to whisperlive-cpu
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
init: true
Expand Down
1 change: 1 addition & 0 deletions libs/shared-models/shared_models/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ class MeetingCreate(BaseModel):
language: Optional[str] = Field(None, description="Optional language code for transcription (e.g., 'en', 'es')")
task: Optional[str] = Field(None, description="Optional task for the transcription model (e.g., 'transcribe', 'translate')")
passcode: Optional[str] = Field(None, description="Optional passcode for the meeting (Teams only)")
title: Optional[str] = Field(None, description="Optional title of the meeting")

@validator('platform')
def platform_must_be_valid(cls, v):
Expand Down
2 changes: 2 additions & 0 deletions services/bot-manager/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ async def request_bot(
meeting_data = {}
if req.passcode:
meeting_data['passcode'] = req.passcode
if req.title:
meeting_data['title'] = req.title

new_meeting = Meeting(
user_id=current_user.id,
Expand Down
13 changes: 12 additions & 1 deletion services/bot-manager/app/orchestrator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
# For example, use 'cuda' for NVIDIA GPUs or 'cpu' for CPU
DEVICE_TYPE = os.environ.get("DEVICE_TYPE", "cuda").lower()

MINIO_ENDPOINT = os.environ.get("MINIO_ENDPOINT")
MINIO_ACCESS_KEY = os.environ.get("MINIO_ACCESS_KEY")
MINIO_SECRET_KEY = os.environ.get("MINIO_SECRET_KEY")
MINIO_BUCKET_NAME = os.environ.get("MINIO_BUCKET_NAME")

logger = logging.getLogger("bot_manager.orchestrator_utils")

# Global session for requests_unixsocket
Expand Down Expand Up @@ -199,7 +204,13 @@ async def start_bot_container(
"noOneJoinedTimeout": 120000,
"everyoneLeftTimeout": 60000
},
"botManagerCallbackUrl": f"http://bot-manager:8080/bots/internal/callback/exited"
"botManagerCallbackUrl": f"http://bot-manager:8080/bots/internal/callback/exited",
"minio": {
"endpoint": MINIO_ENDPOINT,
"accessKey": MINIO_ACCESS_KEY,
"secretKey": MINIO_SECRET_KEY,
"bucketName": MINIO_BUCKET_NAME,
},
}
# Remove keys with None values before serializing
cleaned_config_data = {k: v for k, v in bot_config_data.items() if v is not None}
Expand Down
Loading