Skip to content

Conversation

th3w1zard1
Copy link
Contributor

@th3w1zard1 th3w1zard1 commented Aug 18, 2025

this pr is a mistake, please ignore

- Changed from Toga to FastAPI.
- Removed separate Toga files and integrated FastAPI for backend support.
- Introduced settings and input handling for a flexible setup.
- Enhanced modularity by separating concerns into different components.
- Improved error handling for invalid input types and missing configurations.
  - Added functions for LLM choice and cost calculation.
- Updated test cases to reflect new functionality.
Fixed the final report not being sent to the frontend.

This commit introduces enhancements to the model and provider parsing logic, making the system more flexible and robust in handling various forms of input. It also refactors the 'GenericLLMProvider' class to use detailed model information, such as model IDs and provider names, for more specific tracking and error handling.

Changes:
- Implemented 'ModelFactory' to handle model instantiation
- 'ModelFactory' extracts the model ID and provider from a string for more precise initialization.
- Refactored 'GenericLLMProvider' to track models by ID and provider in a dictionary, rather than just storing the model instances.
- Added internal methods in 'GenericLLMProvider' for adding model information, including support for LiteLLM specifications.
- Implemented filtering of failed models, preventing repeat attempts with models that have consistently failed.
- Integrated cost callback updates to accurately track operational costs.
- Enhanced error handling to raise exceptions when no suitable model is found or all models fail.
- Added a fallback mechanism using the 'json_repair' library to fix invalid JSON responses from the LLM.
- Standardized log messages across the class, improving the consistency of logging output.
- Implemented helper function 'get_litellm_models' to handle the use of LiteLLM models inside the backend (allows falling back to a static JSON file if an API key is not given, useful for free models)
revert `master` to last known rock-hard stable.
th3w1zard1 and others added 27 commits June 30, 2025 00:52
… len()

- Fixed typo in agent.py where 'roll' (numpy function) was assigned instead of 'role' parameter
- Added proper type checking and string conversion for agent_role_prompt in report_generation.py
- Ensures agent_role_prompt is always a string before calling len() function
Updates the requirements on [unstructured](https://github.com/Unstructured-IO/unstructured) to permit the latest version.
- [Release notes](https://github.com/Unstructured-IO/unstructured/releases)
- [Changelog](https://github.com/Unstructured-IO/unstructured/blob/main/CHANGELOG.md)
- [Commits](Unstructured-IO/unstructured@0.13.0...0.18.1)

---
updated-dependencies:
- dependency-name: unstructured
  dependency-version: 0.18.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps python from 3.13.3-slim-bookworm to 3.13.5-slim-bookworm.

---
updated-dependencies:
- dependency-name: python
  dependency-version: 3.13.5-slim-bookworm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
remove discord bot step
fix non-imported type
@Copilot Copilot AI review requested due to automatic review settings August 18, 2025 23:10
@th3w1zard1 th3w1zard1 closed this Aug 18, 2025
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.

2 participants