tmc / langchaingo

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

llms: extract common llms errors to shared declaration #925

Open wgeorgecook opened 1 week ago

wgeorgecook commented 1 week ago

PR Checklist

This addresses the comment Travis made in this PR I previously made. It specifically extracts the ErrorIncompleteEmbedding error and the ErrorEmptyResponse error used in the files in the /llms directory.

I specifically targeted these errors because they're the ones I encountered using LangChain Go, there is still more work to be done in consolidating all of the other potentially shared errors.

wgeorgecook commented 1 week ago

Looks like the ci lint wasn't run before these files made it into main. I'm working on fixing them all now.

wgeorgecook commented 1 week ago

CI is now passing.