forked from stanfordnlp/dspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Updated the DatabricksRM class to use Databricks service principals. #1
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Updated the base class to include the optional parameters - Updated logic on the _query_via_databricks_sdk to use the SP credentials if they exist otherwise will fallback to PAT.
…ity' into dbx_service_principal_functionality # Conflicts: # dspy/retrieve/databricks_rm.py
Updated print statements for which auth method is invoked. Updated docstrings. Created helper function: _get_oauth_token Updated logic for databricks token to use oauth token with SP when using the REST API with client secret and client id
…ity' into dbx_service_principal_functionality # Conflicts: # dspy/retrieve/databricks_rm.py
Updated print statements for which auth method is invoked. Updated docstrings. Created helper function: _get_oauth_token Updated logic for databricks token to use oauth token with SP when using the REST API with client secret and client id
Updated print statements for which auth method is invoked. Updated docstrings. Created helper function: _get_oauth_token Updated logic for databricks token to use oauth token with SP when using the REST API with client secret and client id
Updated print statements for which auth method is invoked. Updated docstrings. Created helper function: _get_oauth_token Updated logic for databricks token to use oauth token with SP when using the REST API with client secret and client id
…ity' into dbx_service_principal_functionality
Updated print statements for which auth method is invoked. Updated docstrings. Created helper function: _get_oauth_token Updated logic for databricks token to use oauth token with SP when using the REST API with client secret and client id
…ity' into dbx_service_principal_functionality
* Fix Pydantic v2 deprecation warning in json_adapter * Fix json adapter tests * use __config__ field --------- Co-authored-by: chenmoneygithub <chen.qian@databricks.com>
* init * increment * fix comments
* feat(settings): expose max_errors globally * Defer max_errors default to invocation * correction in MIPRO
* add asyncio runner * use a different alias
* add more permission capabilities to PythonInterpreter * update tests * update file access/write tests * resolve comments * resolve comments * update flags and interpreter usage * resolve comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated the DatabricksRM class to use Databricks service principals.