Skip to content

Commit ad3811f

Browse files
author
Chris
committed
replacing with env variables
1 parent 997d197 commit ad3811f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

6-text-generation-apps/app-recipe.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525

2626
# engine
27-
engine = "davinci-001"
27+
engine = os.getenv("ENGINE")
2828

2929
# deployment_id
30-
deployment_name = "chris-eastus"
30+
deployment_name = os.getenv("DEPLOYMENT_NAME")
3131

3232
completion = openai.Completion.create(engine=deployment_name, prompt=prompt, max_tokens=600, temperature=0.1)
3333

0 commit comments

Comments
 (0)