tryAGI / LangChain

C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
https://tryagi.github.io/LangChain/
MIT License
507 stars 78 forks source link

Throw exception, when create instance OpenAiProvider #252

Closed jekakmail closed 4 months ago

jekakmail commented 4 months ago

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