Skip to content

Upgrading gradientai to 1.0.0.dev4 #4

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

Merged
merged 4 commits into from
Aug 22, 2023
Merged

Conversation

atmiguel
Copy link
Contributor

No description provided.

@atmiguel atmiguel requested a review from mhaligowski August 21, 2023 16:52
models_api = gradientai.ModelsApi(gradientai.ApiClient(configuration))
model_list = models_api.list_models(only_base="false", x_preemo_workspace_id=os.getenv("GRADIENT_WORKSPACE_ID"))
with gradientai.ApiClient(configuration) as api_client:
models_api = gradientai.ModelsApi(api_client)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's usual in the Python SDKs? The api_client -> models_api flow feels a little off to me.

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'm not sure why it's separated out like this. Perhaps so different apis can share the same underlying client? It's a bit odd, but doesn't seem too bad to me

@atmiguel atmiguel merged commit 417d44d into master Aug 22, 2023
@atmiguel atmiguel deleted the atmiguel-minor-fixes branch August 22, 2023 17:56
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.

2 participants