Skip to content

Commit

Permalink
Adding the credential to jailbreak adv sim init to make sure it can b… (
Browse files Browse the repository at this point in the history
#3523)

…e used at call state

# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.

# All Promptflow Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [ ] Pull request includes test coverage for the included changes.

Co-authored-by: Nagkumar Arkalgud <[email protected]>
  • Loading branch information
nagkumar91 and Nagkumar Arkalgud authored Jul 9, 2024
1 parent f2f56d3 commit 6792ed4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, *, azure_ai_project: Dict[str, Any], credential=None):
credential = DefaultAzureCredential()
elif "credential" in azure_ai_project:
credential = azure_ai_project["credential"]
self.credential = credential
self.azure_ai_project = azure_ai_project
self.token_manager = ManagedIdentityAPITokenManager(
token_scope=TokenScope.DEFAULT_AZURE_MANAGEMENT,
Expand Down

0 comments on commit 6792ed4

Please sign in to comment.