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

feat: Implement dynamic model fetching and real-time updates in OpenAIModelComponent #7253

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

noodleslove
Copy link
Contributor

@noodleslove noodleslove commented Mar 25, 2025

Changelog:

  • Added get_models method to fetch available models from OpenAI API based on the provided API key and base URL.
  • Add unit tests for OpenAIModelComponent functionality

@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 25, 2025
…IModelComponent

* Added `get_models` method to fetch available models from OpenAI API based on the provided API key and base URL.
* Enhanced `update_build_config` method to refresh model options in real-time when API key or base URL changes.
* Introduced `refresh_button` and `real_time_refresh` options for improved user interaction in the component's configuration.
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 25, 2025
Copy link

codspeed-hq bot commented Mar 25, 2025

CodSpeed Performance Report

Merging #7253 will degrade performances by 37.69%

Comparing noodleslove:model/openai (4f22cf3) with main (58e0d42)

Summary

⚡ 1 improvements
❌ 2 regressions
✅ 16 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
test_build_flow_invalid_job_id 8 ms 12.8 ms -37.69%
test_cancel_build_failure 257.5 ms 215.9 ms +19.27%
test_cancel_nonexistent_build 7.7 ms 12 ms -35.48%

@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 25, 2025
@noodleslove noodleslove marked this pull request as ready for review March 25, 2025 15:20
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant