|
![]() |
Docs React Native | Docs Expo |
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; |
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
export enum Plan { | |
BASIC = 'basic', | |
PRO = 'pro', | |
PREMIUM = 'premium', | |
ENTERPRISE = 'enterprise', | |
} | |
export interface Client { | |
id: string; // C1-12345 | |
name: string; |
NewerOlder