Merge pull request #777 from chetanp2002/#776-chetanp2002

This commit is contained in:
Sharath 2025-06-22 22:15:01 +05:30 committed by GitHub
commit 1ad945fd94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -336,7 +336,7 @@ def collect_llm_api_keys():
for i, model in enumerate(model_aliases['ANTHROPIC'], 1):
print(f"{Colors.CYAN}[{i}] {Colors.GREEN}{model}{Colors.ENDC}")
model_choice = input("Select default model (1-3) or press Enter for claude-3-7-sonnet: ").strip()
model_choice = input("Select default model (1-3) or press Enter for claude-3-7-sonnet ").strip()
if not model_choice or model_choice == '1':
model_info['default_model'] = 'anthropic/claude-3-7-sonnet-latest'
elif model_choice.isdigit() and 1 <= int(model_choice) <= len(model_aliases['ANTHROPIC']):
@ -615,6 +615,10 @@ def setup_supabase():
supabase_url = line.strip().split('=', 1)[1]
break
# Add this check
if not supabase_url:
raise RuntimeError("SUPABASE_URL not found in environment or backend/.env file.")
project_ref = None
if supabase_url:
# Extract project reference from URL (format: https://[project_ref].supabase.co)