Update README.md
This commit is contained in:
@@ -28,11 +28,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
c := gogpt.NewClient("your token")
|
client := gogpt.NewClient("your token")
|
||||||
ctx := context.Background()
|
|
||||||
|
|
||||||
resp, err := c.CreateChatCompletion(
|
resp, err := c.CreateChatCompletion(
|
||||||
ctx,
|
context.Background(),
|
||||||
gogpt.ChatCompletionRequest{
|
gogpt.ChatCompletionRequest{
|
||||||
Model: gogpt.GPT3Dot5Turbo,
|
Model: gogpt.GPT3Dot5Turbo,
|
||||||
Messages: []gogpt.ChatCompletionMessage{
|
Messages: []gogpt.ChatCompletionMessage{
|
||||||
|
|||||||
Reference in New Issue
Block a user