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

feat: llama3 in studio #23307

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

feat: llama3 in studio #23307

wants to merge 1 commit into from

Conversation

gregnr
Copy link
Member

@gregnr gregnr commented Apr 27, 2024

Initial work to Bring-your-own-AI™ to Supabase studio. Requires an OpenAI-compatible API. Tested with Llama3 via Groq.

Changes

In addition to the existing OPENAI_API_KEY env var, there are now 2 more:

  • OPENAI_BASE_URL: point this to your openai-compatible API, eg https://api.groq.com/openai/v1
  • OPENAI_MODEL: choose the language model, currently supports llama3, gpt-3.5, and gpt-4

In order for clippy to continue to work, we also added these env vars:

  • OPENAI_EMBEDDING_API_KEY
  • OPENAI_EMBEDDING_BASE_URL
  • OPENAI_EMBEDDING_MODEL

These are necessary if we want to be able to eg. use groq + llama3 for the language model and openai + text-embedding-ada-002 for the embedding model.

Other

Also did some work on the tokenizer to support open models like llama3 (we use the tokenizer to count tokens before sending them to the model).

Copy link

supabase bot commented Apr 27, 2024

No changes detected in supabase directory.
This pull request has been ignored for the connected project xguihxuzqibwxjnimxev due to its connection settings.
Go to Project Integrations Settings ↗︎ in order to change this behavior.


Branching Preview Branches by Supabase.
Learn more about Supabase for Git ↗︎.

Copy link

vercel bot commented Apr 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
database-new ❌ Failed (Inspect) Apr 27, 2024 1:29am
studio-staging ❌ Failed (Inspect) Apr 27, 2024 1:29am
4 Ignored Deployments
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Apr 27, 2024 1:29am
studio ⬜️ Ignored (Inspect) Apr 27, 2024 1:29am
studio-self-hosted ⬜️ Ignored (Inspect) Apr 27, 2024 1:29am
zone-www-dot-com ⬜️ Ignored (Inspect) Apr 27, 2024 1:29am

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.

None yet

1 participant