-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Feature/autogenstudio UI extra headers #2433
Conversation
…itizeConfig function
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2433 +/- ##
===========================================
+ Coverage 33.11% 48.53% +15.41%
===========================================
Files 86 87 +1
Lines 9108 9340 +232
Branches 1938 2140 +202
===========================================
+ Hits 3016 4533 +1517
+ Misses 5837 4402 -1435
- Partials 255 405 +150
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @ronaldpereira - we rebased this for you but it looks like there are still some conflicts. If you are still interested in bringing this forward please have a look at resolving the conflicts and greening the CI |
Hello @rysweet, The recent changes to the autogen studio have affected the database and UI design I've implemented, so adjustments will be needed to make this mergeable. I believe it would be more efficient to create a new branch from scratch using the current codebase, rather than trying to adapt the existing one in this MR. Therefore, I'll close this MR for now and will open a new one, referencing this, once the new branch is ready. Thank you for rebasing this MR for me. |
Why are these changes needed?
Problem: The autogenstudio library lacked the ability to specify default headers for API requests. This caused issues when APIs required specific headers to be included in every request.
Solution: I've extended autogenstudio to accept an optional default_headers parameter. This parameter allows developers to define a dictionary containing the desired headers, which will be automatically included in all API requests generated by autogenstudio.
For example, when any custom API needed some extra headers to complete the request:
"default_headers": {"X-Requester-Token": "<requester_token>"}
The llm_config parameter already accepts this configuration, but it wasn't possible to pass it via the autogenstudio via model creation.
Checks
Extra info
This MR was done originally in here, but it was needed to create this in the upstream repo for openai tests to run.