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

feat: Create Client with Client::default(); use default parameters #35

Merged
merged 3 commits into from
Feb 11, 2023

Conversation

swnb
Copy link
Contributor

@swnb swnb commented Feb 10, 2023

Using Client::default() to create a Client does not set the default api_base, it will crash when sending request;
The purpose of this pr is to use Client::default() to create a Client and set the correct default parameters

async-openai/src/client.rs Outdated Show resolved Hide resolved
async-openai/src/client.rs Outdated Show resolved Hide resolved
@64bit
Copy link
Owner

64bit commented Feb 10, 2023

Good catch @swnb thank you for the fix.
I'll release this in 0.6.1, do you mind taking the look at comments?

swnb and others added 2 commits February 11, 2023 09:51
Co-authored-by: Himanshu Neema <himanshun.iitkgp@gmail.com>
Co-authored-by: Himanshu Neema <himanshun.iitkgp@gmail.com>
@swnb
Copy link
Contributor Author

swnb commented Feb 11, 2023

thank you for your reply @64bit

@swnb swnb requested a review from 64bit February 11, 2023 01:56
@64bit 64bit merged commit fb369e1 into 64bit:main Feb 11, 2023
@64bit
Copy link
Owner

64bit commented Feb 11, 2023

The release 0.6.1 with this change is published on crates.io
Thank you

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.

None yet

2 participants