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
{ | |
"workbench.iconTheme": "moxer-icons", | |
"workbench.colorCustomizations": { | |
"tab.activeBorder": "#0077b6", | |
"tab.unfocusedActiveBorder": "#000000", | |
"tab.activeBackground": "#0077b6", | |
"tab.hoverBackground": "#348cff" | |
}, | |
"highlight.regexes": { | |
"((?:<!-- *)?(?:#|// @|//|./\\*+|<!--|--|\\* @|{!|{{!--|{{!) *TODO(?:\\s*\\([^)]+\\))?:?)((?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|--|{!|{{!--|{{!))|(?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|{!|{{!--|{{!))|(?: +[^@\\n]+)?))": { |
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
const { ProviderClass } = require('@bot-whatsapp/bot') | |
const TelegramBot = require("node-telegram-bot-api"); | |
class TelegramProvider extends ProviderClass { | |
vendor | |
constructor({ token }) { | |
super() | |
this.vendor = new TelegramBot(token, { polling: true }); | |
const listEvents = this.busEvents() | |
for (const { event, func } of listEvents) { |
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
const { CoreClass } = require('@bot-whatsapp/bot'); | |
class ChatGPTClass extends CoreClass { | |
queue = []; | |
optionsGPT = { model: "gpt-3.5-turbo" }; | |
openai = undefined; | |
constructor(_database, _provider) { | |
super(null, _database, _provider) |
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
name: publish | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
publish-hello-docker-image: | |
runs-on: ubuntu-latest | |
steps: |
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
const { JWT } = require("google-auth-library"); | |
const { GoogleSpreadsheet } = require("google-spreadsheet"); | |
const SCOPES = [ | |
"https://www.googleapis.com/auth/spreadsheets", | |
"https://www.googleapis.com/auth/drive.file", | |
]; | |
class GoogleSheetService { | |
jwtFromEnv = undefined; |
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
```bash | |
#!/bin/bash | |
OPENAI_API_KEY='' | |
ID_TENANT='' | |
EXTERNAL_API_KEY='' | |
CONTAINER_NAME='' | |
PORT='' | |
while getopts o:i:e:n:p: flag |
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
#!/bin/bash | |
# Detener la ejecución en caso de cualquier error | |
set -e | |
# Actualizar la lista de paquetes | |
echo "Actualizando la lista de paquetes..." | |
sudo apt-get update -qq | |
# Actualizar todos los paquetes instalados |
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
"use strict"; | |
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | |
const qwik = require("@builder.io/qwik"); | |
const Logo = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(() => { | |
return /* @__PURE__ */ qwik._jsxQ("div", null, null, /* @__PURE__ */ qwik._jsxQ("a", null, { | |
href: "https://qwik.builder.io/" | |
}, /* @__PURE__ */ qwik._jsxQ("img", null, { | |
alt: "Qwik Logo", | |
width: 400, | |
height: 147, |
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
require('dotenv').config() | |
const { CoreClass } = require('@bot-whatsapp/bot'); | |
/** | |
* 🔥🔥🔥 [NOTA] (Ejemplo 1)🔥🔥🔥 | |
* Esta clase NO extiende "CoreClass" como lo explico en el minuto 4:24 del video | |
* Titulado: ChatGPT más flujo convencional (PROMPT) | |
* Link: https://app.codigoencasa.com/courses/curso-chatbot-whatsapp/tbBJYil4 | |
*/ | |
class ChatGPTClass{ |
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 { OpenAI, PromptTemplate } from "langchain"; | |
import { LLMChain, VectorDBQAChain } from "langchain/chains"; | |
import { initializeAgentExecutor } from "langchain/agents"; | |
import { OpenAIEmbeddings } from "langchain/embeddings/openai"; | |
import { HNSWLib } from "langchain/vectorstores/hnswlib"; | |
import { ChainTool, DynamicTool } from "langchain/tools"; | |
import { | |
CallbackManager, | |
LangChainTracer, | |
ConsoleCallbackHandler, |