-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: group all provider/model related logic into
llm
directory (…
…#254) * Move provider files in provider directory * Move all specific code into abstraction * Fix first round of feedback * Second round of feedbacks * fix(llm): improve type hints and handle missing files - Add 'unknown' as valid provider type in ModelMeta - Handle missing 'files' key in Anthropic message dict - Organize imports and improve type hints * fix: remove files field from anthropic messages + refactor - Fix: Remove 'files' field from message dict in anthropic provider - Refactor: Extract file processing logic in both providers - Split handle_files into smaller functions - Make internal functions private with underscore prefix - Improve code organization and readability --------- Co-authored-by: Erik Bjäreholt <erik@bjareho.lt>
- Loading branch information
Showing
12 changed files
with
263 additions
and
153 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.