spliit icon indicating copy to clipboard operation
spliit copied to clipboard

Make OpenAI models configurable and add OPENAI_BASE_URL (closes #517)

Open BastiOfBerlin opened this issue 6 months ago • 0 comments

Summary

  • Replace deprecated gpt-3.5-turbo (category extraction) and hardcoded gpt-5-nano (receipt scanning) with current-gen gpt-5.4-nano defaults
  • Add OPENAI_MODEL_CATEGORY_EXTRACT and OPENAI_MODEL_RECEIPT_EXTRACT env vars to override each model independently
  • Add optional OPENAI_BASE_URL to support self-hosted / OpenAI-compatible endpoints
  • Document the new variables in .env.example and README.md

Closes #517

Test plan

  • [ ] With only OPENAI_API_KEY + enable flags set, env parsing succeeds and both features default to gpt-5.4-nano
  • [ ] Setting OPENAI_MODEL_CATEGORY_EXTRACT/OPENAI_MODEL_RECEIPT_EXTRACT overrides the model used
  • [ ] Invalid OPENAI_BASE_URL (non-URL) fails zod validation at startup
  • [ ] Unset OPENAI_BASE_URL still uses the official OpenAI API (SDK default)
  • [ ] End-to-end: category extraction (title blur) and receipt upload work with the new default

BastiOfBerlin avatar May 18 '26 13:05 BastiOfBerlin