This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9ad29c
commit 1d8c5db
Showing
30 changed files
with
139 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
.idea | ||
.env | ||
go-chatgpt-api | ||
undetected_chromedriver | ||
example/idea/http-client.private.env.json | ||
__debug* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package chatgpt | ||
|
||
//goland:noinspection SpellCheckingInspection | ||
const ( | ||
defaultRole = "user" | ||
parseJsonErrorMessage = "Failed to parse json request body." | ||
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." | ||
getCsrfTokenErrorMessage = "failed to get CSRF token" | ||
authSessionUrl = "https://chat.openai.com/api/auth/session" | ||
|
||
gpt4Model = "gpt-4" | ||
actionContinue = "continue" | ||
responseTypeMaxTokens = "max_tokens" | ||
responseStatusFinishedSuccessfully = "finished_successfully" | ||
noModelPermissionErrorMessage = "You have no permission to use this model, maybe you Plus has expired, or this model is temporary disabled, or the arkoseToken is invalid." | ||
noModelPermissionErrorMessage = "you have no permission to use this model" | ||
|
||
refreshPuidErrorMessage = "Failed to refresh PUID." | ||
refreshPuidErrorMessage = "failed to refresh PUID" | ||
) |
Oops, something went wrong.