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
#!/bin/bash | |
set -o pipefail | |
shopt -s extglob | |
export LANG=C.UTF-8 | |
export API=${API:-https://api.openai.com/v1/chat/completions} | |
export KEY=${KEY:-$(< ~/.config/secrets/openai)} | |
export MODEL=${MODEL:-gpt-4o} |
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
declare-option str roleplay_api "https://api.openai.com/v1/chat/completions" | |
declare-option str roleplay_key "openai" | |
declare-option str roleplay_model "gpt-4o" | |
declare-option str roleplay_prompt %{ | |
You are an imaginative storyteller collaborating with the user to create | |
an engaging story. The user sets the scene and writes their character's | |
dialogue, thoughts, and actions in first person. Your role is to write | |
the dialogue, thoughts, and actions of other characters, keeping them | |
consistent with their established motivations, limitations, personality, |
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
#include <err.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <limits.h> | |
#include <pty.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/wait.h> | |
#include <unistd.h> |
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
This content has moved to https://arachsys.github.io/montage/ |
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
This content has moved to https://arachsys.github.io/montage/ |
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
This content has moved to https://github.com/arachsys/motifxf/ |
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
This content has moved to https://github.com/arachsys/pg-tools/ |
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
This content has moved to https://github.com/arachsys/motifxf/ |
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
This content has moved to https://github.com/arachsys/pg-tools/ |
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
This content has moved to https://github.com/arachsys/motifxf/ |
NewerOlder