Skip to content

Commit

Permalink
Fix typo (#3594)
Browse files Browse the repository at this point in the history
# Description

1. Missing "," in code snippet for creating connection using sdk
2. Fix code snippet for deleting connection using sdk

# All Promptflow Contribution checklist:
- [x] **The pull request does not introduce [breaking changes].**
- [x] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [x] **I have read the [contribution
guidelines](https://github.com/microsoft/promptflow/blob/main/CONTRIBUTING.md).**
- [x] **I confirm that all new dependencies are compatible with the MIT
license.**
- [ ] **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
- [x] Title of the pull request is clear and informative.
- [x] 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
- [x] Pull request includes test coverage for the included changes.

---------

Co-authored-by: Clement Wang <[email protected]>
  • Loading branch information
Krish054 and wangchao1230 authored Jul 30, 2024
1 parent 4a71322 commit aa4bd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to-guides/manage-connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pf = PFClient()
connection = AzureOpenAIConnection(
name="my_azure_open_ai_connection",
api_key="<your-api-key>",
api_base="<your-endpoint>"
api_base="<your-endpoint>",
api_version="2023-03-15-preview"
)

Expand Down Expand Up @@ -194,7 +194,7 @@ from promptflow.client import PFClient
# Get a pf client to manage connections
pf = PFClient()
# Delete the connection with specific name
client.connections.delete(name="my_custom_connection")
pf.connections.delete(name="my_custom_connection")
```
:::

Expand Down

0 comments on commit aa4bd0a

Please sign in to comment.