chatgpt_package

Creator: coderz1093

Last updated:

0 purchases

chatgpt_package Image
chatgpt_package Images

Languages

Categories

Add to Cart

Description:

chatgpt package

Please not that you need to get working api key from OpenAi to enable ChatGpt
Sample Usage: #
import 'package:flutter/material.dart';
import 'package:chatgpt_package/chatgpt_module.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// Replace with your OpenAI API key
String openaiApiKey = 'YOUR_OPENAI_API_KEY';

return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('ChatGPT Demo'),
),
body: Center(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: ChatgptModule(token: openaiApiKey),
),
),
),
);
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.