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

Throw exception, when create instance OpenAiProvider #252

Closed
jekakmail opened this issue Apr 24, 2024 · 0 comments · Fixed by #253
Closed

Throw exception, when create instance OpenAiProvider #252

jekakmail opened this issue Apr 24, 2024 · 0 comments · Fixed by #253
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@jekakmail
Copy link
Contributor

Describe the bug

I get last version nuget packages tryAGI.OpenAI (2.0.6), because, his .ctor was exteneded to support https parameter, some times ago. Yeah! I need it! Early, I used reflection to get correct behaviour in my case (connect to localhost).
But, when I try create instance OpenAiProvider, I got exception: "System.MissingMethodException: Method not found: 'Void OpenAI.OpenAIClientSettings..ctor(System.String, System.String)'."

Steps to reproduce the bug

  1. Get last version nuget package "tryAGI.OpenAI" (2.0.6)
  2. Get last version nuget package "LangChain.Providers.OpenAI" (0.13.1-dev107)
  3. Create instance OpenAiProvider

Expected behavior

No response

Screenshots

No response

NuGet package version

"tryAGI.OpenAI" (2.0.6)
"LangChain.Providers.OpenAI" (0.13.1-dev107)

Additional context

No response

@jekakmail jekakmail added the bug Something isn't working label Apr 24, 2024
@HavenDV HavenDV added the dependencies Pull requests that update a dependency file label Apr 24, 2024
HavenDV added a commit that referenced this issue Apr 25, 2024
* * extend .ctor OpenAiProvider.cs to support inject custom OpenAiClient

* * bump tryAGI.OpenAI package to last version

* Update src/Providers/OpenAI/src/OpenAiProvider.cs

Co-authored-by: Konstantin S. <havendv@gmail.com>

* Update OpenAiProvider.cs

Revert my changes at .ctor

---------

Co-authored-by: Konstantin S. <havendv@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants