Skip to content

Add Google PaLM2 API support#466

Open
alceops wants to merge 1 commit intoarakoodev:tsfrom
alceops:alceops/palm2-api
Open

Add Google PaLM2 API support#466
alceops wants to merge 1 commit intoarakoodev:tsfrom
alceops:alceops/palm2-api

Conversation

@alceops
Copy link
Copy Markdown

@alceops alceops commented Apr 25, 2026

Closes #279.

Summary

  • Adds a typed Palm2AI client for Google PaLM2 text-bison and chat-bison endpoints.
  • Exports PaLM2 classes/types from the AI package entrypoint.
  • Adds unit testcases in a testcases/palm2 folder covering text and chat request payloads.
  • Adds a PaLM2 example with prompts/config kept in examples/palm2/prompt.jsonnet instead of hardcoded prompt strings.

Verification

  • npm run build
  • npx vitest run src/ai/src/testcases/palm2/palm2.test.ts

@alceops
Copy link
Copy Markdown
Author

alceops commented Apr 26, 2026

Quick verification pass for maintainer review: this PR is still scoped to PaLM2 API support only, keeps prompt content in the Jsonnet example, and was verified locally with npm run build plus npx vitest run src/ai/src/testcases/palm2/palm2.test.ts. I can turn around any requested changes quickly.

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

Labels

None yet

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