Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add secrets reload withs safe retry #2702

Merged
merged 3 commits into from
Dec 27, 2024

Conversation

kartik4949
Copy link
Collaborator

Description

Related Issues

Checklist

  • Is this code covered by new or existing unit tests or integration tests?
  • Did you run make unit_testing and make integration-testing successfully?
  • Do new classes, functions, methods and parameters all have docstrings?
  • Were existing docstrings updated, if necessary?
  • Was external documentation updated, if necessary?

Additional Notes or Comments

self.syncClient = SyncOpenAI(**self.client_kwargs)

if 'OPENAI_API_KEY' not in os.environ and (
'api_key' not in self.client_kwargs.keys() and self.client_kwargs
):
raise ValueError(
raise exceptions.SecretsMissingException(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MissingSecretsException

@@ -174,6 +174,7 @@ class Config(BaseConfig):
envs: dc.InitVar[t.Optional[t.Dict[str, str]]] = None

data_backend: str = "mongodb://localhost:27017/test_db"
secret_dir: str = os.path.join(".superduper", "secrets")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

secrets_volume

@@ -174,6 +174,7 @@ class Config(BaseConfig):
envs: dc.InitVar[t.Optional[t.Dict[str, str]]] = None

data_backend: str = "mongodb://localhost:27017/test_db"
secret_dir: str = os.path.join(".superduper", "secrets")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default=/session/secrets

@kartik4949 kartik4949 force-pushed the add/secrets_reload branch 13 times, most recently from ddb1e0c to 7ef935f Compare December 27, 2024 14:28
@@ -1,5 +1,5 @@
from .model import OpenAIChatCompletion, OpenAIEmbedding

__version__ = "0.4.2"
__version__ = "0.4.3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work.

@kartik4949 kartik4949 merged commit a2ebc17 into superduper-io:main Dec 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants