-
Notifications
You must be signed in to change notification settings - Fork 472
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
Conversation
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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MissingSecretsException
superduper/base/config.py
Outdated
@@ -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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
secrets_volume
superduper/base/config.py
Outdated
@@ -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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default=/session/secrets
db35354
to
9f2007c
Compare
ddb1e0c
to
7ef935f
Compare
@@ -1,5 +1,5 @@ | |||
from .model import OpenAIChatCompletion, OpenAIEmbedding | |||
|
|||
__version__ = "0.4.2" | |||
__version__ = "0.4.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work.
7ef935f
to
2be19ea
Compare
Description
Related Issues
Checklist
make unit_testing
andmake integration-testing
successfully?Additional Notes or Comments