Skip to content

Conversation

@lpiwowar
Copy link
Contributor

@lpiwowar lpiwowar commented May 12, 2025

Let's discover all the config options that are available in the /models API call automatically. This commit removes all config options that do not need to be specified by the end user.

The code related to models is moved to a separate package to ensure clear separation between the code related to models and the rest of the app.

@lpiwowar lpiwowar force-pushed the lpiwowar/config-default-api branch from b9d025e to 9296298 Compare May 14, 2025 12:21
@lpiwowar lpiwowar changed the title Discover config options through /models Discover config options through /models May 14, 2025
@lpiwowar lpiwowar force-pushed the lpiwowar/config-default-api branch from 9296298 to 9bbbd8e Compare May 14, 2025 15:28
@lpiwowar lpiwowar marked this pull request as ready for review May 14, 2025 15:33
@lpiwowar lpiwowar requested a review from EmilienM May 14, 2025 15:34
Copy link
Contributor

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This refactoring represents a significant step forward in terms of code maintainability. The introduction of the models package and the dynamic fetching of model capabilities are excellent changes. The codebase is now cleaner and more robust.
I dropped minor comments, mainly for sharing some thoughts, but really well done!

Feel free to merge when you think it's ready.

Let's discover all the config options that are available in the /models
API call automatically. This commit removes all config options that do
not need to be specified by the end user.

The code related to models is moved to a separate package to ensure
clear separation between the code related to models and the rest of the
app.
@EmilienM EmilienM force-pushed the lpiwowar/config-default-api branch from 9bbbd8e to 8202d3d Compare May 15, 2025 02:00
@EmilienM
Copy link
Contributor

@lpiwowar I rebased it for you, sorry for the merge conflict. It was only a package import in api.py.

@EmilienM EmilienM merged commit 53f73a2 into main May 15, 2025
3 checks passed
@EmilienM EmilienM deleted the lpiwowar/config-default-api branch May 15, 2025 02:10
@lpiwowar lpiwowar linked an issue May 16, 2025 that may be closed by this pull request
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.

Remove config options that are discoverable through the API

3 participants