-
Update Software Repositories
sudo apt update
-
Install dependencies required to set up Docker's repository:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
[MASTER] | |
# A comma-separated list of package or module names from where C extensions may | |
# be loaded. Extensions are loading into the active Python interpreter and may | |
# run arbitrary code. | |
extension-pkg-whitelist= | |
# Add files or directories to the blacklist. They should be base names, not | |
# paths. | |
ignore=CVS |
wget https://packages.klaytn.net/klaytn/v1.8.4/ken-v1.8.4-0-linux-amd64.tar.gz | |
tar zxf ken-v1.8.4-0-linux-amd64.tar.gz | |
export PATH=$PATH:/home/ec2-user/ken-linux-amd64/bin/ | |
mkdir /home/ec2-user/ken-linux-amd64/data | |
sed -i.bak 's/^\(DATA_DIR=\).*/\1\/home\/ec2-user\/ken-linux-amd64\/data/' ken-linux-amd64/conf/kend.conf | |
cd /home/ec2-user/ken-linux-amd64 | |
wget https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-20220713010714.tar.gz | |
tar -C data/ -xf klaytn-cypress-chaindata-20220713010714.tar.gz | |
kend start |
Built a one-file OpenRouter client — figured I'd open-source it.
We deal with a lot of dynamic structured data, where different LLM calls have different priorities — sometimes speed, sometimes latency, sometimes cost. After a year of using OpenRouter heavily in production, I ran into plenty of real-world issues — bad providers, unreliable fallbacks, weird edge cases — so I baked all of that into this. We needed strong guarantees on output and simple, reliable handling around it. Also worth mentioning: OpenAI (and by extension OpenRouter) have their own quirks when dealing with Zod-based structured outputs — plenty of edge cases there too.
The primary motivations: