You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+40-10Lines changed: 40 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,53 @@ An Golang native implementation to easily interacting with OpenAI API.
6
6
7
7
You can use environment variable to store API secret key
8
8
```
9
-
export OPENAPI_KEY=YOUR_KEY
9
+
export OPENAI_KEY=[YOUR_KEY]
10
10
```
11
11
12
12
To initialize engine, use this:
13
13
```go
14
-
e:= openai.New(os.Getenv("OPENAPI_KEY"))
14
+
e:= openai.New(os.Getenv("OPENAI_KEY"))
15
15
```
16
16
17
+
### Tips
18
+
19
+
#### Model
20
+
If you want to use the most powerful model to generate text outputs, ensure that you are using "text-davinci-003". This model is defined as constant `openai.ModelTextDavinci003`.
21
+
22
+
#### Text edition
23
+
You can use the bundle Completion+Edit to regenerate the response based on the last context.
0 commit comments