v1.0.16chat_gpt_flutter
Flutter फ्रेमवर्क का उपयोग करके OpenAI API का एकीकरण, ChatGPT और अधिक
48लाइक 26430-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
hrvojecukman/chat_gpt_flutter open-source repository details.
^5.4.0{"sdk":"flutter"}^1.1.2^4.8.1^6.7.1^1.3.1{"sdk":"flutter"}^3.0.1^8.0.6^2.4.7यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
ChatGPT API implemented in Flutter
Usage example
You have to create OpenAI account and request API key from here: https://beta.openai.com/account/api-keys
final chatGpt = ChatGpt(apiKey: apiKey);
final question =
'Which Disney character famously leaves a glass slipper behind at a royal ball?';
final request = CompletionRequest(
prompt: question,
stream: true,
maxTokens: 4000,
model: ChatGptModel.textDavinci003.key,
);
final stream = await chatGpt.createCompletionStream(request);
final chatGpt = ChatGpt(apiKey: apiKey);
final testPrompt =
'Which Disney character famously leaves a glass slipper behind at a royal ball?';
final testRequest = CompletionRequest(
prompt: testPrompt,
model: ChatGptModel.textDavinci003.key,
);
final result = await chatGpt.createCompletion(testRequest);