Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
linweiyuan committed Oct 2, 2023
1 parent be9f38d commit 54b43d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions api/chatgpt/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ const (
defaultRole = "user"
parseJsonErrorMessage = "failed to parse json request body"

csrfUrl = "https://chat.openai.com/api/auth/csrf"
promptLoginUrl = "https://chat.openai.com/api/auth/signin/auth0?prompt=login"
getCsrfTokenErrorMessage = "failed to get CSRF token"
authSessionUrl = "https://chat.openai.com/api/auth/session"

gpt4Model = "gpt-4"
actionContinue = "continue"
responseTypeMaxTokens = "max_tokens"
Expand Down
5 changes: 0 additions & 5 deletions api/chatgpt/typings.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package chatgpt

import (
tls_client "github.com/bogdanfinn/tls-client"
"github.com/google/uuid"
)

type UserLogin struct {
client tls_client.HttpClient
}

type CreateConversationRequest struct {
Action string `json:"action"`
Messages []Message `json:"messages"`
Expand Down

0 comments on commit 54b43d9

Please sign in to comment.