Skip to content

fix(js): finish palm2 and gemini support#481

Draft
desai2424 wants to merge 1 commit into
arakoodev:tsfrom
desai2424:codex/palm2-gemini-fix
Draft

fix(js): finish palm2 and gemini support#481
desai2424 wants to merge 1 commit into
arakoodev:tsfrom
desai2424:codex/palm2-gemini-fix

Conversation

@desai2424
Copy link
Copy Markdown

Closes #279

Summary

  • add a direct Palm2AI client for Google Generative Language endpoints without the Google SDK
  • fix GeminiAI so max_output_tokens, responseType, and related settings are sent in the correct Google request body
  • export the Palm2/Gemini types from the AI package
  • add server-backed tests under src/ai/src/tests/palm2
  • add a Jsonnet-driven example under JS/edgechains/examples/palm2-chat

Root cause

GeminiAI already existed in the tree, but generation settings were attached to the axios config instead of the Google generateContent request body, so they were effectively ignored.

Verification

  • ./node_modules/.bin/vitest run src/ai/src/tests/palm2/palm2.test.ts
  • npm run build

/claim #279

@github-actions
Copy link
Copy Markdown

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Before we can accept your contribution, we ask that you sign the Arakoo Contributor License Agreement. You can sign the CLA by adding a new comment to this pull request and pasting exactly the following text.


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


Neel Desai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

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