tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.76k stars 523 forks source link

bugfix: incorrect error return in applyClientOptions function #807

Closed 0xd219b closed 1 month ago

0xd219b commented 2 months ago

This commit corrects an errors handling issue in the applyClientOptions function within the opensearch options module.

Previously, when the opensearch client was missing, the function erroneously returned ErrMissingEmbedded instead of ErrMissingOpensearchClient.

This update ensures that the current error is returned.

PR Checklist