Skip to content

Add PaLM2-compatible Google AI support - #638

Open
Luvi-1 wants to merge 1 commit into
arakoodev:tsfrom
Luvi-1:agent/palm2-279
Open

Add PaLM2-compatible Google AI support#638
Luvi-1 wants to merge 1 commit into
arakoodev:tsfrom
Luvi-1:agent/palm2-279

Conversation

@Luvi-1

@Luvi-1 Luvi-1 commented Aug 3, 2026

Copy link
Copy Markdown

/claim #279

Summary

  • export a typed Palm2AI compatibility class from the JavaScript AI package
  • repair Google generation settings so they are sent in the generationConfig request body
  • allow model and API-base selection while defaulting to Google's maintained Generative Language endpoint
  • add mocked coverage under tests/palm2 with its prompt loaded from testcases/palm2/prompt.jsonnet
  • add a Jsonnet-driven palm2-chat example with no prompt hardcoded in TypeScript

The original PaLM models are retired; this preserves the requested class name on Google's maintained generateContent API instead of shipping an example against a dead model endpoint.

Validation

  • npx tsc -p tsconfig.json --noEmit --incremental false
  • npx vitest run src/ai/src/tests/palm2/palm2.test.ts (1 passed)
  • example TypeScript check passed
  • repository Prettier settings passed for every touched file

Closes #279

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Luvi-1

Luvi-1 commented Aug 3, 2026

Copy link
Copy Markdown
Author

recheck

1 similar comment
@Luvi-1

Luvi-1 commented Aug 3, 2026

Copy link
Copy Markdown
Author

recheck

@Luvi-1
Luvi-1 marked this pull request as ready for review August 3, 2026 06:47
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