SDK to API using smart batching + Export to Excel - #33
Merged
Conversation
…tion Docker COPY of uv.lock was broken after the lockfile was gitignored, omitted dates KeyError'd before Field defaults, and extract_sentences scored only entity_ids[0]. Co-authored-by: Cursor <cursoragent@cursor.com>
bigdata-client used to call load_dotenv() at import, so removing it left .env unread and startup failed on missing API keys. Configure env_file explicitly; real environment variables still take precedence. Co-authored-by: Cursor <cursoragent@cursor.com>
The Bigdata.com and OpenAI clients fell back to os.environ, so keys supplied only through .env reached Settings but not the clients, and analyses failed mid-run with missing credentials. Both are now constructed from settings. A report database created by 2.x also kept its old columns, since create_all never alters existing tables, making every /status read fail with an opaque 500. Startup now reports the incompatible schema explicitly. Co-authored-by: Cursor <cursoragent@cursor.com>
paco-ravenpack
approved these changes
Aug 26, 2026
paco-ravenpack
left a comment
Contributor
There was a problem hiding this comment.
Locally verified after the SDK-to-API follow-up fixes: .env credentials reach the OpenAI and Bigdata.com clients, the 3.0 SQLite schema is created (or startup fails clearly on a 2.x DB), and a full analysis run completed successfully.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK to API using smart batching + Export to Excel