chat_gpt_sdk library
Classes
- AdaModel
- AudioRequest
- AudioResponse
- BabbageModel
- CancelData
- Categories
- CategoryScores
- ChatCompleteText
- ChatCTResponse
- ChatModel
- ChatModelFromValue
- ChatResponseSSE
- Choice
- CodeDavinci2Model
- CompleteResponse
- CT is Complete text CompleteResponse
- CompleteText
- CreateFineTune
- CurieModel
- DavinciModel
- DeleteFile
- EditFile
- EditImageRequest
- EditRequest
- EditResponse
- EmbedData
- EmbedRequest
- EmbedResponse
- EngineModel
- FileData
- FileResponse
- FineTuneDelete
- FineTuneEvent
- FineTuneHyperParams
- FineTuneModel
- FunctionData
- GenerateImage
- GenImgResponse
- Gpt40314ChatModel
- Gpt40631ChatModel
- Gpt432k0314ChatModel
- Gpt432kChatModel
- Gpt4ChatModel
- GptTurbo0301ChatModel
- GptTurbo0631Model
- GptTurbo16k0631Model
- GptTurboChatModel
- HttpSetup
- Messages
- Model
- ModelFromValue
- OpenAI
- OpenAiModel
- TextAda001Model
- TextBabbage001Model
- TextCurie001Model
- TextDavinci2Model
- TextDavinci3Model
- TrainingFiles
- UploadFile
- UploadResponse
- Variation
Enums
- Format
- The format in which the generated images are returned. Must be one of url or b64_json.
- FunctionCall
- ImageSize
- The size of the generated images.
- Role
Extensions
Constants
- kAdaModel → const String
- fine tune models
- kBabbageModel → const String
- kChatGpt4 → const String
- kChatGpt40314 → const String
- kChatGpt40631 → const String
- kChatGpt432k → const String
- kChatGpt432k0314 → const String
- kChatGptTurbo → const String
- chat completion
- kChatGptTurbo0301Model → const String
- kChatGptTurbo0613 → const String
- kChatGptTurbo16k0613 → const String
- kChatGptTurboModel → const String
- chat complete 3.5 and gpt-4
- kCodeDavinci2 → const String
- kCompletion → const String
- kCurieModel → const String
- kDavinciModel → const String
- kEditPrompt → const String
- edit prompt
- kEditsCoedModel → const String
- kEditsTextModel → const String
- edits
- kEmbedding → const String
- embeddings
- kEmbeddingAda002 → const String
- embeddings
- kEngineList → const String
- get list engine
- kFile → const String
- files
- kFineTune → const String
- fine tune
- kFineTuneJob → const String
- kFineTuneModel → const String
- fine tune model
- kGenerateImage → const String
- generate image with prompt
- kImageEdit → const String
- image edit
- kModelList → const String
- get list model
- kModeration → const String
- moderation's
- kOpenAI → const String
- kOrgIdKey → const String
- kTextAda001 → const String
- kTextBabbage001 → const String
- kTextCurie001 → const String
- kTextDavinci2 → const String
- kTextDavinci3 → const String
- model name
- kTextMLast → const String
- kTextMStable → const String
- moderation model
- kTextSearchAdaDoc001 → const String
- kTokenKey → const String
- key data
- kTranscription → const String
- audio
- kTranslations → const String
- kURL → const String
- Base ChatGPT Url
- kVariation → const String
- variation
Functions
-
kHeader(
String? token, String? orgId) → Map< String, String> - default header
-
translateEngToThai(
{required String word}) → String -
translateThaiToEng(
{required String word}) → String -
translateToJapanese(
{required String word}) → String
Exceptions / Errors
- MissingTokenException
- MissingTokenException not found access token
- OpenAIAuthError
- Cause: Invalid Authentication Solution: Ensure the correct API key and requesting organization are being used.
- OpenAIRateLimitError
- Cause: You are sending requests too quickly. Solution: Pace your requests. Read the Rate limit guide.
- OpenAIServerError
- Cause: Issue on our servers. Solution: Retry your request after a brief wait and contact us if the issue persists. Check the status page.
- RequestError
- RequestError narmal error