dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Create Google LM

Open CShorten opened this issue 1 year ago • 1 comments

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 history is stored as internal state to the LMs as a list[dict[str, Any]]. I would like to explore adding functionality around inspect_history next.

CShorten avatar Feb 15 '24 22:02 CShorten

Thank you so much @CShorten!

It'd be great if you could update this markdown doc as well. docs/language_models_client.md

insop avatar Feb 16 '24 04:02 insop

This is fantastic, thank you so much @CShorten and @insop ! I'm excited about Connor's vision for when 1.5 is released!

okhat avatar Feb 17 '24 05:02 okhat