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
585 stars 87 forks source link

Serve: Provide OpenAI SDK compatible API #275

Open HavenDV opened 7 months ago

HavenDV commented 7 months ago

What would you like to be added:

Why is this needed:

Anything else we need to know?

HavenDV commented 6 months ago

It should allow https://github.com/open-webui/open-webui usage

erisonliang commented 6 months ago

Could you please add non-ssl url (for example, LM Studio's open ai using url for local server is http://localhost:1234 by default) supported in OpenAIProvider?

HavenDV commented 6 months ago

image. image you can use this constructor and https = false in OpenAIClientSettings to bypass it

HavenDV commented 6 months ago

I will soon change the OpenAI sdk (it will be completely generated from their official OpenAPI and will contain all the features at the time of their release) so there is no point in changing anything yet

erisonliang commented 6 months ago

Thank you so much. I'll try it soon.