You are browsing as a guest. Sign up (or log in) to start making projects!

40m 10s logged

4th devlog (?)

this devlog features somewhat 4 commits of struggling with the Anthropic API Scheme (i’d love to curse the engineer there that decided aahhh let’s just build a whole new format cuz we dont like openai).
So yeah, 2 files added and a few edited:

  • main.js -> This is gonna be used later to launch the entire project at once, cuz server.js is only the express server and I want it to run in the background and adding a .bat script to start everything felt a bit weird…

  • start-cc.js -> Who would’ve guessed it: It starts Claude Code with the required Environment variables (bet i wrote that wrong), but atm CC is just too tuff to accept any models the API delivers and just straight up continues advertising it’s own models without even trying to load others, even with the CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY: ‘1’ flag whyever that thing even exists… the flag might as well just do nothing, GPT told me it tell CC to request localhost:6967/v1/models (guess what it did: NOTHING yippie)

in server.js I added a translator for the Anthropic <-> OpenAI model API (with help of AI because JSON and JS at the same time blow my mind)
Also added some debugging console.logs, they aren’t as effective as i hoped, but lets see.

0
8

Comments 0

No comments yet. Be the first!