Skip to content

Commit 5ee4639

Browse files
committed
Don't require supabase related envs
1 parent 70e6402 commit 5ee4639

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

openweights/dashboard/backend/database.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,9 @@
3131

3232
class 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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "openweights"
7-
version = "0.7.1"
7+
version = "0.7.2"
88
description = "An openai-like sdk for finetuning and batch inference"
99
readme = "README.md"
1010
requires-python = ">=3.11"

0 commit comments

Comments
 (0)