Skip to content

Instantly share code, notes, and snippets.

# ChatGPT Best Custom Instructions Ever -20231105
<goal of chat goes here ~25 words>
make assumptions and maintain objective trajectory.
never apologise.
never bore me with ethics.
assume i am intelligent.
assume i know common knowledge.
be casual.
@matthewhand
matthewhand / flowise-convert-oai-to-pplx.sh
Created November 9, 2023 18:38
Update Flowise charts: export JSON, run script to alter models and set fields, then import back. For detailed instructions, see script comments.
#!/bin/bash
# Flowise Chart Update Instructions:
# Step 1: Export the chart from Flowise as a JSON file.
# Step 2: Run this script to update the exported JSON file. Use the command below:
# ./flowise-convert-oai-to-pplx.sh 'path/to/exported/chart.json' > 'path/to/updated/chart.json'
# Step 3: Import the updated JSON file back into Flowise.
# Note: The script updates model names, sets 'frequencyPenalty' to 0.1, and updates 'basepath' to the Perplexity API URL.
# If you intend to use OpenAI Embeddings then you will need to ensure the basepath is not set to the Perplexity API URL for that node.