arakoodev / EdgeChains

EdgeChains.js Typescript/Javascript production-friendly Generative AI. Based on Jsonnet. Works anywhere that Webassembly does. Prompts live declaratively & "outside code in config". Kubernetes & edge friendly. Compatible with OpenAI GPT, Gemini, Llama2, Anthropic, Mistral and others
https://www.arakoo.ai/
MIT License
321 stars 66 forks source link

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

Open sandys opened 7 months ago

sandys commented 7 months ago

Currently, the javascript SDK supports only openai (https://github.com/arakoodev/EdgeChains/tree/ts/JS/edgechains/lib/src/lib/endpoints)

we want you to add support for Palm2 api from google.

https://developers.generativeai.google/

bounty will deemed complete when:

  1. you have the classes and typescript types added for Palm2 api
  2. unit testcases in a testcases folder named "palm2"
  3. example for palm2 - make sure your prompts are in the jsonnet file and not hardcoded. we will reject any examples/testcases that dont use jsonnet.
sandys commented 7 months ago

/bounty 25

algora-pbc[bot] commented 7 months ago

💎 $25 bounty • Arakoo.ai

Steps to solve:

  1. Start working: Comment /attempt #279 with your implementation plan
  2. Submit work: Create a pull request including /claim #279 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to arakoodev/EdgeChains!

Add a bountyShare on socials

Gmin2 commented 7 months ago

can you assign me this ?

sandys commented 7 months ago

@Min2who assigned. best wishes for a successful bounty

Gmin2 commented 7 months ago

Hey @sandys do i need to take care of the OAuth authentication too OR do i need to create classes and typescript types for Palm2 api

sandys commented 7 months ago

oauth ? are u looking at the tuning api ? the text/chat palm api has no oauth

https://developers.generativeai.google/tutorials/text_node_quickstart

sandys commented 7 months ago

@Min2who please make sure u have a working example. because im a little worried u might be building the classes for the wrong api.

Gmin2 commented 6 months ago

Hey @sandys should we replace the palm API with gemini API as palm-API is giving some error recently

sandys commented 6 months ago

sure. please go ahead.

On Fri, Dec 29, 2023 at 3:27 PM Mintu Gogoi @.***> wrote:

Hey @sandys https://github.com/sandys should we replace the palm API with gemini API as palm-API is giving some error recently

— Reply to this email directly, view it on GitHub https://github.com/arakoodev/EdgeChains/issues/279#issuecomment-1871893529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASYU76MUHMVY5S4MELUV3YL2H2BAVCNFSM6AAAAABAA42K2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRHA4TGNJSHE . You are receiving this because you were mentioned.Message ID: @.***>

Gmin2 commented 6 months ago

@sandys added gemini api 😊 You can review it

sandys commented 6 months ago

@Min2who we are unable to accept your PR right now. there is no working testcase.

last time when you did the palm api, your testcase was just checking content of json/jsonnet and not standing up an api and testing against it

Gmin2 commented 6 months ago

@Min2who we are unable to accept your PR right now. there is no working testcase.

last time when you did the palm api, your testcase was just checking content of json/jsonnet and not standing up an api and testing against it

@sandys do i need to add test for endpoints

sandys commented 6 months ago

@Min2who please check the first message in this issue with clear requirements for accepting the bounty

Gmin2 commented 6 months ago

@sandys i have added the working example yu may have miss it

if this is not enough then i shall close the pr

sandys commented 6 months ago

@Min2who unfortunately it is not enough

Sadaf-A commented 5 months ago

hey @sandys I would like to work on this are we looking to add palm2 api or gemini?

sandys commented 5 months ago

@Sadaf-A yes - u can take this if u want. palm2 is deprecated, we need gemini. please read the first comment on the requirements for acceptance (testcases, etc)

sandys commented 4 months ago

@Shyam-Raghuwanshi you have used the generativelanguage SDK from google. you have not implemented an equivalent in edgechains. will need this corrected.

Shyam-Raghuwanshi commented 4 months ago

Ok

quitsune commented 1 month ago

Please update the issue according to the new changes in file paths