dspy
dspy copied to clipboard
Create Google LM
Followed the Cohere LM template. It doesn't look like you can sample multiple generations in one call to the API (linked the Google API docs I'm following in the code). Outside of that, I think it is a pretty standard implementation in sync with the other LMs.
Comment:
- Cool to get a better understanding of how
historyis stored as internal state to the LMs as alist[dict[str, Any]]. I would like to explore adding functionality around inspect_history next.
Thank you so much @CShorten!
It'd be great if you could update this markdown doc as well.
docs/language_models_client.md
This is fantastic, thank you so much @CShorten and @insop ! I'm excited about Connor's vision for when 1.5 is released!