Skip to content

Add Palm2-compatible Google AI provider#460

Open
l8888888 wants to merge 1 commit intoarakoodev:tsfrom
l8888888:bounty-279-gemini-palm2-api
Open

Add Palm2-compatible Google AI provider#460
l8888888 wants to merge 1 commit intoarakoodev:tsfrom
l8888888:bounty-279-gemini-palm2-api

Conversation

@l8888888
Copy link
Copy Markdown

Closes #279
/claim #279

Summary

  • Reworks the Google Generative Language provider into a direct REST-based Palm2AI class with a GeminiAI compatibility export
  • Adds typed contents, generation config, responses, JSON response mode, retry support, and text helper output
  • Adds mocked unit tests under src/ai/src/tests/palm2/
  • Adds a jsonnet-driven chat example where prompts live in jsonnet instead of TypeScript

Validation

  • npm test -- --run src/ai/src/tests/palm2/gemini.test.ts
  • npm run build

Note: the example is included as source documentation for local usage after this package build includes the new Palm2AI export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOUNTY: add support for Google Palm2 API in javascript/typescript

1 participant