Skip to content

feat(js-sdk): add Google PaLM2 API client support in TypeScript/JavaScript (#279) - #757

Closed
thinhnx128 wants to merge 1 commit into
arakoodev:tsfrom
thinhnx128:feat/google-palm2-api-support-279
Closed

thinhnx128 wants to merge 1 commit into
arakoodev:tsfrom
thinhnx128:feat/google-palm2-api-support-279

Conversation

@thinhnx128

Copy link
Copy Markdown

Summary

Adds Palm2Client to the EdgeChains TypeScript/JavaScript SDK (JS/edgechains/lib/src/lib/clients/Palm2Client.ts) providing native support for the Google PaLM 2 Generative Language API (#279):

  • Supported PaLM 2 Capabilities:
    • generateText(options | prompt) via models/text-bison-001:generateText with temperature, maxOutputTokens, topP, topK, candidateCount, and stopSequences.
    • chat(options) via models/chat-bison-001:generateMessage supporting multi-turn messages, context, and few-shot examples.
    • embedText(text, model) via models/embedding-gecko-001:embedText returning vector embeddings.
  • Unit Tests:
    • Added JS/edgechains/lib/src/lib/clients/__tests__/Palm2Client.test.ts verifying API key validation, prompt validation, text generation, and vector embedding responses.

Closes #279
/claim #279

@thinhnx128

Copy link
Copy Markdown
Author

I have read the Arakoo CLA Document and I hereby sign the CLA

@thinhnx128

Copy link
Copy Markdown
Author

Closing this to reduce review load — it wasn't requested by the maintainers. Thanks for your time; happy to reopen if it's useful.

@thinhnx128 thinhnx128 closed this Nov 12, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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