This file contains 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
/** | |
* Created by Kevin Tam on 08/08/2014. | |
*/ | |
var Base58 = require('bs58'); | |
var Crypto = require('crypto'); | |
var BigInteger = require('bigi'); | |
var assert = require('assert'); | |
var Bitcoin = require('../../') |
This file contains 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
steps: | |
- name: 'gcr.io/cloud-builders/docker' | |
args: | |
- 'pull' | |
- 'quay.io/unstructured-io/unstructured-api:latest' | |
- name: 'gcr.io/cloud-builders/docker' | |
args: | |
- 'tag' | |
- 'quay.io/unstructured-io/unstructured-api:latest' | |
- 'asia-southeast1-docker.pkg.dev/glorat-gptapps/sg-unstructured/unstructured-api:latest' |
This file contains 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 { updateEntrypointsFrom0_x_xTo0_2_x } from "@langchain/scripts/migrations"; | |
const pathToMyProject = "./functions/src"; // This path is used in the following glob pattern: `${projectPath}/**/*.{ts,tsx,js,jsx}`. | |
updateEntrypointsFrom0_x_xTo0_2_x({ | |
projectPath: pathToMyProject, | |
tsConfigPath: "tsconfig.json", // Path to the tsConfig file. This will be used to load all the project files into the script. | |
// testRun: true, // If true, the script will not save any changes, but will log the changes that would be made. | |
shouldLog: true, | |
}); |
This file contains 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
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | |
// @ts-nocheck | |
/** | |
* Taken from https://github.com/glorat/node-chatgpt-api/blob/main/src/ChatGPTClient.js | |
* but with the following mods to make it browser friendly: | |
* - Replace cacheOptions with cache, to decouple from keyv, which doesn't work in browser | |
* - Remove undici, which doesn't work in browser | |
* - Remove proxying support | |
* - use uuid instead of crypto |