Closed edwinjosechittilappilly closed 1 week ago
Comparing feat-add-latest-model-names
(d6b71d5) with main
(5df0854)
❌ 2
regressions
✅ 13
untouched benchmarks
:warning: Please fix the performance issues or acknowledge them on CodSpeed.
Benchmark | main |
feat-add-latest-model-names |
Change | |
---|---|---|---|---|
❌ | test_successful_run_with_input_type_text |
217.6 ms | 296.1 ms | -26.53% |
❌ | test_successful_run_with_output_type_any |
183 ms | 272.2 ms | -32.78% |
This pull request includes updates to the model constants and their usage in dropdown inputs for Anthropic and Google Generative AI models. The key changes involve moving the model options to separate constants files and updating the dropdown input components to use these constants.
Model Constants Update:
src/backend/base/langflow/base/models/anthropic_constants.py
: Added a list of Anthropic models to a new constantANTHROPIC_MODELS
.src/backend/base/langflow/base/models/google_generative_ai_constants.py
: Added a list of Google Generative AI models to a new constantGOOGLE_GENERATIVE_AI_MODELS
.Dropdown Input Components Update:
src/backend/base/langflow/components/models/anthropic.py
: ImportedANTHROPIC_MODELS
and updated theDropdownInput
options in theAnthropicModelComponent
class to use this constant. [1] [2]src/backend/base/langflow/components/models/google_generative_ai.py
: ImportedGOOGLE_GENERATIVE_AI_MODELS
and updated theDropdownInput
options in theGoogleGenerativeAIComponent
class to use this constant. [1] [2]