Good idea. Will figure out a way to do this.
simple solution: honor OPENAI_API_BASE env var
Perhaps instead of writing an llm abstraction layer, you could use a lightweight one, such as @simonw's llm.
simple solution: honor OPENAI_API_BASE env var