tmc / langchaingo

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

Take genai.Client as argument for GoogleAI constructor #849

Closed arkadyb closed 1 month ago

arkadyb commented 1 month ago

The original google client has some other options to use besides the ones exposed via langchaingo. One of those is the option to verify a count of tokens in the prompt. Here tiktoken-go is outdated and does not support the google ai models.