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

update google/generative-ai-go to v0.14.0 #901

Closed JckHoe closed 1 week ago

JckHoe commented 1 week ago

PR Checklist

bumping google-ai dependencies to latest 0.14.0

JckHoe commented 1 week ago

the changes are for

panic: interface conversion: interface {} is []string, not []interface {}

When running the example for tool calls using google-ai

removed the converting slice of interface as it is now already slice of string from the parameter required?

From the example

"required": []string{"location"},

https://github.com/tmc/langchaingo/blob/main/examples/googleai-tool-call-example/googleai-tool-call-example.go#L103

wangjiancn commented 1 week ago

sry, i fix it in https://github.com/tmc/langchaingo/pull/903

JckHoe commented 1 week ago

@wangjiancn awesome, thanks!