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

add IHttpClientFactory, GetCompletionAsync #1

Merged
merged 1 commit into from Apr 29, 2023

Conversation

EslaMx7
Copy link
Contributor

@EslaMx7 EslaMx7 commented Apr 28, 2023

  • Add support for custom IHttpClientFactory based on this PR. it will allow increasing the default HttpClient timeout of 100 second.
  • Add GetCompletionAsync
  • Use GetAwaiter().GetResult() instead of .Result to prevent swallowing the original exception.

@vermorel vermorel merged commit 8cd945a into Lokad:master Apr 29, 2023
@abhishek6616
Copy link

abhishek6616 commented Jan 18, 2024

HI @vermorel @EslaMx7 I am still getting 100 second Timeout Can you help me with this.

@vermorel
Copy link
Member

@abhishek6616 The library has evolved quite substantially since your first post. I suggest to update to the latest version of the nuget package.

@abhishek6616
Copy link

@vermorel I have the latest v 1.10 . and I am using chatCompletion end point , but mostly it is giving 100 seconds timeout exception. I have configured http client using httpclientfactory and set timeout for 200 seconds which has been provided by the library but it giving the same error again and again. using gpt-4 model.

@vermorel
Copy link
Member

Hum, the latest version is 0.7.0 , see https://feed.nuget.org/packages/Lokad.Prompting

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

4 participants