-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Enhance the behavior of the method that loads llm_config and add new tests #3277
Conversation
@@ -1413,7 +1447,7 @@ def test_http_client(): | |||
|
|||
def test_adding_duplicate_function_warning(): | |||
|
|||
config_base = [{"base_url": "http://0.0.0.0:8000", "api_key": "NULL"}] | |||
config_base = [{"base_url": "http://0.0.0.0:8000", "api_key": "NULL", "model": "na"}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added model
here because it seems like a required field and shouldn't be omitted. If that's not the case (which I doubt), lmk and we can make it optional.
@thinkall Can I get a review on this? |
Could you create the PR from a branch in the upstream repo so that we can run the openai tests? |
Why are these changes needed?
The current _validate_llm_config method contains redundancy and lacks comprehensive issue checks (for example, I was passing a
string
fortags
and it didn't complain and required 30 minutes to debugging to figure out what the issue was). This improved version addresses these problems and includes 2 news tests.Related issue number
Checks