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

[Doc] Change to env reference in prompty doc #3016

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/how-to-guides/develop-a-prompty/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ model:
configuration:
type: azure_openai
azure_deployment: gpt-35-turbo
api_key: <api-key>
lalala123123 marked this conversation as resolved.
Show resolved Hide resolved
api_version: <api-version>
azure_endpoint: <azure-endpoint>
api_key: ${env:AZURE_OPENAI_API_KEY}
api_version: ${env:AZURE_OPENAI_API_VERSION}
azure_endpoint: ${env:AZURE_OPENAI_ENDPOINT}
parameters:
max_tokens: 128
temperature: 0.2
Expand Down Expand Up @@ -168,8 +168,8 @@ model:
configuration:
type: openai
model: gpt-3.5-turbo
api_key: <api-key>
base_url: <api_base>
api_key: ${env:OPENAI_API_KEY}
base_url: ${env:OPENAI_BASE_URL}
parameters:
max_tokens: 128
temperature: 0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ model:
api: chat
configuration:
type: azure_openai
connection: <connection_name>
lalala123123 marked this conversation as resolved.
Show resolved Hide resolved
connection: open_ai_connection
azure_deployment: gpt-35-turbo-0125
parameters:
max_tokens: 128
Expand Down Expand Up @@ -268,4 +268,4 @@ result = prompty_func(first_name="John", last_name="Doh", question=question)
# Type of the result is generator
for item in result:
print(item, end="")
```
```
Loading