File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
openweights/dashboard/backend Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 3131
3232class Database :
3333 def __init__ (self , auth_token : Optional [str ] = None ):
34- self .supabase_url = os .getenv ("SUPABASE_URL" )
35- self .supabase_anon_key = os .getenv ("SUPABASE_ANON_KEY" )
3634 self .auth_token = auth_token
3735 self ._current_org_id = None
3836
39- if not self .supabase_url or not self .supabase_anon_key :
40- raise ValueError ("SUPABASE_URL and SUPABASE_ANON_KEY must be set" )
41-
4237 # Initialize regular client for normal operations
4338 self .client = create_client (self .supabase_url , self .supabase_anon_key )
4439 if auth_token :
@@ -50,9 +45,7 @@ def ow_client(self) -> OpenWeights:
5045 if not self ._current_org_id :
5146 raise ValueError ("No organization set. Call set_organization_id first." )
5247 return OpenWeights (
53- self .supabase_url ,
54- self .supabase_anon_key ,
55- self .auth_token ,
48+ auth_token = self .auth_token ,
5649 organization_id = self ._current_org_id ,
5750 )
5851
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " openweights"
7- version = " 0.7.1 "
7+ version = " 0.7.2 "
88description = " An openai-like sdk for finetuning and batch inference"
99readme = " README.md"
1010requires-python = " >=3.11"
You can’t perform that action at this time.
0 commit comments