Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sandys opened this issue Nov 30, 2023 · 20 comments
Open

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

sandys opened this issue Nov 30, 2023 · 20 comments

Comments

@sandys
Copy link
Contributor

sandys commented Nov 30, 2023

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
Copy link
Contributor Author

sandys commented Nov 30, 2023

/bounty 25

Copy link

algora-pbc bot commented Nov 30, 2023

💎 $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
Copy link

Gmin2 commented Nov 30, 2023

can you assign me this ?

@sandys
Copy link
Contributor Author

sandys commented Nov 30, 2023

@Min2who assigned. best wishes for a successful bounty

@Gmin2
Copy link

Gmin2 commented Nov 30, 2023

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
Copy link
Contributor Author

sandys commented Nov 30, 2023

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
Copy link
Contributor Author

sandys commented Nov 30, 2023

@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
Copy link

Gmin2 commented Dec 29, 2023

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

@sandys
Copy link
Contributor Author

sandys commented Dec 29, 2023 via email

@Gmin2
Copy link

Gmin2 commented Dec 29, 2023

@sandys added gemini api 😊
You can review it

@sandys
Copy link
Contributor Author

sandys commented Dec 30, 2023

@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
Copy link

Gmin2 commented Dec 30, 2023

@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
Copy link
Contributor Author

sandys commented Dec 30, 2023

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

@Gmin2
Copy link

Gmin2 commented Dec 30, 2023

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

if this is not enough then i shall close the pr

@sandys
Copy link
Contributor Author

sandys commented Dec 30, 2023

@Min2who unfortunately it is not enough

@Gmin2 Gmin2 removed their assignment Dec 30, 2023
@Sadaf-A
Copy link
Contributor

Sadaf-A commented Jan 15, 2024

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

@sandys
Copy link
Contributor Author

sandys commented Jan 16, 2024

@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
Copy link
Contributor Author

sandys commented Feb 29, 2024

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

@Shyam-Raghuwanshi
Copy link
Contributor

Ok

@quitsune
Copy link

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

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

Successfully merging a pull request may close this issue.

5 participants