microsoft / TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.
https://microsoft.github.io/TypeChat/
MIT License
8.06k stars 379 forks source link

AI Provider agnostic using Langchain #176

Open demosjarco opened 5 months ago

demosjarco commented 5 months ago

I started migrating the hard coded openai and azure openai to instead take a langchain model so that this can be provider agnostic.

While the langchain implementation itself works (I tested it by copying the src folder into another project and using it), this project has an immense amount of ESModule configuration issues that prevents it from building. I'm not familiar to the extent of this projects ES implementation and honestly I need help on that part.

Lastly, in OpenAI/Azure OpenAI, this uses the json response mode to guarantee JSON response format, but still uses the existing validator.

demosjarco commented 5 months ago

@microsoft-github-policy-service agree company="ChainFuse"