-
Notifications
You must be signed in to change notification settings - Fork 638
fix(py): add mistral to model-garden and add llama back #4185
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,10 +70,7 @@ def __init__( | |
| ) | ||
|
|
||
| self.location = ( | ||
| location | ||
| or os.getenv('GOOGLE_CLOUD_LOCATION') | ||
| or os.getenv('GOOGLE_CLOUD_REGION') | ||
| or const.DEFAULT_REGION | ||
| location or os.getenv('GOOGLE_CLOUD_LOCATION') or os.getenv('GOOGLE_CLOUD_REGION') or const.DEFAULT_REGION | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is quite long (over 100 characters) and can be difficult to read. The previous multi-line formatting was more readable and aligned better with Python style guides like PEP 8, which recommend limiting line length. I'd suggest reverting to the multi-line format for better maintainability. location
or os.getenv('GOOGLE_CLOUD_LOCATION')
or os.getenv('GOOGLE_CLOUD_REGION')
or const.DEFAULT_REGION |
||
| ) | ||
|
|
||
| self.models = models | ||
|
|
||
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.
For improved readability and to make the logic clearer, you could simplify this line. Using
orto chain the dictionary lookups is a more common and idiomatic Python pattern for this scenario. It also has the minor benefit of short-circuiting, so the second lookup is only performed if the first one fails.