Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added total cost and tokens for embedings and extraction LLM in detailed report #8

Merged
merged 7 commits into from
Nov 15, 2024

Conversation

pk-zipstack
Copy link
Contributor

@pk-zipstack pk-zipstack requested review from ritwik-g, a team and kirtimanmishrazipstack and removed request for a team November 14, 2024 04:33
Signed-off-by: pk-zipstack <[email protected]>
main.py Outdated Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
Co-authored-by: Ritwik G <[email protected]>
Signed-off-by: pk-zipstack <[email protected]>
- Initialize cost and token variables as None instead of 0.0/0
- Update database schema to remove DEFAULT values
- Modify calculate_cost_and_tokens function to handle None values
- Update report formatting to display "None" for NULL values
- Improve metadata extraction with null safety checks

Signed-off-by: pk-zipstack <[email protected]>
main.py Outdated Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
@ritwik-g ritwik-g merged commit 0687d6e into main Nov 15, 2024
2 checks passed
@ritwik-g ritwik-g deleted the enhance-report-details branch November 15, 2024 07:21
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.

3 participants