Skip to content

Commit 49d3855

Browse files
committed
chore: add more info for deployment
1 parent c8f9ce4 commit 49d3855

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

gpt3/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,26 @@
99
```
1010
python-lambda-local function.py event.json -t 900
1111
```
12+
13+
## Deployment
14+
15+
1. Log in to your workspace:
16+
17+
```
18+
priceloop login-web
19+
```
20+
21+
2. Register the function:
22+
23+
```
24+
priceloop create-external-function --function gpt3 --runtime python --parameter-types "string,string" --return-type "string"
25+
```
26+
27+
3. Update the function:
28+
29+
```
30+
# from root directory of this repository
31+
priceloop update-external-function --function gpt3 --directory gpt3
32+
```
33+
34+
4. Go to <https://alpha.priceloop.ai/> and try out the function in a formula with `\gpt3(gpt3_input, openai_api_key)`

gpt3/event.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"BatchedArgs": [["Extract name from email: [email protected]", "<openai-key>"], ["Extract name from email: [email protected]", "<openai-key>"]]
2+
"BatchedArgs": [["Extract name from email: [email protected]", "<openai_api_key>"], ["Extract name from email: [email protected]", "<openai_api_key>"]]
33
}

0 commit comments

Comments
 (0)