Skip to content

Claude/configure OpenAI models mz9gqMake OpenAI models configurable and add OPENAI_BASE_URL (closes #517)#522

Open
BastiOfBerlin wants to merge 2 commits into
spliit-app:mainfrom
BastiOfBerlin:claude/configure-openai-models-MZ9gq
Open

Claude/configure OpenAI models mz9gqMake OpenAI models configurable and add OPENAI_BASE_URL (closes #517)#522
BastiOfBerlin wants to merge 2 commits into
spliit-app:mainfrom
BastiOfBerlin:claude/configure-openai-models-MZ9gq

Conversation

@BastiOfBerlin
Copy link
Copy Markdown

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

claude added 2 commits May 18, 2026 10:55
Replace the deprecated gpt-3.5-turbo category-extraction model and the
hardcoded receipt-scanning model with current-gen gpt-5.4-nano defaults,
each overridable via OPENAI_MODEL_CATEGORY_EXTRACT and
OPENAI_MODEL_RECEIPT_EXTRACT. Add optional OPENAI_BASE_URL to support
self-hosted / OpenAI-compatible endpoints. Closes spliit-app#517.

https://claude.ai/code/session_015jgzJtUpheDpE53Rq5RPxY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Category + receipt extraction: OpenAI model deprecation

2 participants