tmc / langchaingo

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

add FilePart implement for ContentPart to support chat with file #1053

Open geekr-dev opened 1 month ago

geekr-dev commented 1 month ago

… Gemini

PR Checklist

geekr-dev commented 1 month ago

sorry, the func (FileContent) IsPart() {} method should be isPart with the first letter lowercase, and I hope you can change the method isPart in ContentPart interface to be public, then we can implement our own XXXPart in our logic code

ImPedro29 commented 6 days ago

Nice PR! Lets make changes and approve it