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

Enhance the behavior of the method that loads llm_config and add new tests #3277

Closed
wants to merge 9 commits into from
Closed

Enhance the behavior of the method that loads llm_config and add new tests #3277

wants to merge 9 commits into from

Conversation

umermansoor
Copy link
Contributor

@umermansoor umermansoor commented Aug 2, 2024

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 for tags 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

@umermansoor umermansoor requested a review from thinkall August 2, 2024 07:59
@@ -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"}]
Copy link
Contributor Author

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.

@umermansoor umermansoor changed the title Enhance the behavior of the method that loads ll_config and add new tests Enhance the behavior of the method that loads llm_config and add new tests Aug 2, 2024
@umermansoor
Copy link
Contributor Author

@thinkall Can I get a review on this?

@sonichi sonichi requested a review from jtoy August 6, 2024 20:19
@sonichi
Copy link
Contributor

sonichi commented Aug 6, 2024

Could you create the PR from a branch in the upstream repo so that we can run the openai tests?

@umermansoor umermansoor closed this by deleting the head repository Aug 7, 2024
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.

3 participants