Skip to content

Instantly share code, notes, and snippets.

@pgainullin
pgainullin / main.dart
Created December 1, 2020 08:17
Dart assignment for different types
void main() {
int a = 5;
print(a);
int b = a;
print(b);
a = 23;
print(b);
String aString = '5';
@pgainullin
pgainullin / main.dart
Created January 8, 2023 03:47
sparkling-utopia-7418
import 'package:http/http.dart' as http;
import 'dart:convert';
void main() async {
const String apiKey ='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';
ChatbotClient chatbot = ChatbotClient(apiKey, 'text-davinci-003');
String response = await chatbot.getResponse('who are you?');
print('resp:' + response); // Outputs the chatbot's response