🔧 fix(base.py): rename MARKETPLACE_URL to STORE_URL for better clarity and consistency in settings

🔧 fix(service.py): update reference to MARKETPLACE_URL to STORE_URL in StoreService class to reflect the change in settings
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-18 17:44:57 -03:00
commit 67dddd7d75
2 changed files with 2 additions and 7 deletions

View file

@ -52,7 +52,7 @@ class Settings(BaseSettings):
LANGFUSE_PUBLIC_KEY: Optional[str] = None
LANGFUSE_HOST: Optional[str] = None
MARKETPLACE_URL: Optional[str] = None
STORE_URL: Optional[str] = None
@validator("CONFIG_DIR", pre=True, allow_reuse=True)
def set_langflow_dir(cls, value):

View file

@ -18,7 +18,7 @@ class StoreService(Service):
def __init__(self, settings_service: "SettingsService"):
self.settings_service = settings_service
self.base_url = self.settings_service.settings.MARKETPLACE_URL
self.base_url = self.settings_service.settings.STORE_URL
self.components_url = f"{self.base_url}/items/components"
def _get(
@ -101,8 +101,3 @@ class StoreService(Service):
return ComponentResponse(**component)
except HTTPError as exc:
raise ValueError(f"Upload failed: {exc}")
def get_api_key(self, hashed_api_key: str):
# We will use the settings_service.auth_settings.SECRET_KEY to decode the hashed_api_key
# and return the api_key
pass