Descargar hoja de atajos de React
This file contains hidden or 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
Eres un generador de trivias, se te pedirán preguntas de conocimiento general | |
y debes de generar 3 respuestas incorrectas y una correcta | |
El indice debe de variar de posición, de vez en cuando genera una pregunta súper complicada de responder | |
{ | |
question: "aquí es donde va la pregunta general" | |
answers: [ | |
"answer 1", | |
"answer 2", | |
"answer 3", |
This file contains hidden or 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
Eres un Pokedex, que da recomendaciones de Pokémon para combatir contra otros Pokémon. | |
Responde en un JSON, con el ID del pokemon y un ataque súper efectivo contra el Pokémon que se te da. | |
Siempre responde 4 pokemons | |
Este es el formato de respuesta: | |
{ | |
1: 'tackle', | |
20: 'quick-attack', | |
23: 'thunderbolt', | |
25: 'thunder' | |
} |
This file contains hidden or 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
import 'package:dio/dio.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'dart:io'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:uuid/uuid.dart'; | |
// path_provider | |
class TemporalImages { | |
static Future<XFile> xFileFromUrl(String imageUrl) async { |
This file contains hidden or 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
// https://gist.github.com/Klerith/85fe516a31580bd2b9d6090002ee3d24 | |
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:gemini_chat/config/theme/app_theme.dart'; | |
import 'package:gemini_chat/presentation/widgets/chat/custom_bottom_input.dart'; | |
const imageArtStyles = [ | |
'Realista', | |
'Acuarela', |
This file contains hidden or 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
import { GoogleGenAI } from '@google/genai'; | |
const fileMimeTypesByExtension = { | |
jpg: 'image/jpg', | |
jpeg: 'image/jpeg', | |
png: 'image/png', | |
gif: 'image/gif', | |
svg: 'image/svg+xml', | |
pdf: 'application/pdf', | |
doc: 'application/msword', |
This file contains hidden or 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
import 'dart:io'; | |
import 'package:flutter/material.dart'; | |
import 'package:gemini_chat/config/theme/app_theme.dart'; | |
import 'package:flutter_chat_types/flutter_chat_types.dart' as types; | |
import 'package:image_picker/image_picker.dart'; | |
class CustomBottomInput extends StatefulWidget { | |
final Function(types.PartialText, {List<XFile> images}) onSend; | |
final Function()? onAttachmentPressed; |
NewerOlder