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

Add Groq model provider #916

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const translateUserFriendlyLabel = (label: string) => {
"OBOT_ANTHROPIC_MODEL_PROVIDER",
"OBOT_OLLAMA_MODEL_PROVIDER",
"OBOT_VOYAGE_MODEL_PROVIDER",
"OBOT_GROQ_MODEL_PROVIDER"
];

return fieldsToStrip
Expand Down
8 changes: 8 additions & 0 deletions ui/admin/app/components/model-providers/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const CommonModelProviderIds = {
OLLAMA: "ollama-model-provider",
GROQ: "groq-model-provider",
VOYAGE: "voyage-model-provider",
ANTHROPIC: "anthropic-model-provider",
OPENAI: "openai-model-provider",
Expand All @@ -9,6 +10,7 @@ export const CommonModelProviderIds = {
export const ModelProviderLinks = {
[CommonModelProviderIds.VOYAGE]: "https://www.voyageai.com/",
[CommonModelProviderIds.OLLAMA]: "https://ollama.com/",
[CommonModelProviderIds.GROQ]: "https://groq.com/",
[CommonModelProviderIds.AZURE_OPENAI]:
"https://azure.microsoft.com/en-us/explore/",
[CommonModelProviderIds.ANTHROPIC]: "https://www.anthropic.com",
Expand All @@ -33,6 +35,9 @@ export const ModelProviderRequiredTooltips: {
[CommonModelProviderIds.OLLAMA]: {
Host: "IP Address for the ollama server (eg. 127.0.0.1:1234)",
},
[CommonModelProviderIds.GROQ]: {
"API Key": "Groq API Key. Can be created and fetched from https://console.groq.com/keys",
sanjay920 marked this conversation as resolved.
Show resolved Hide resolved
},
[CommonModelProviderIds.AZURE_OPENAI]: {
Endpoint:
"Endpoint for the Azure OpenAI service (eg. https://<resource-name>.<region>.api.cognitive.microsoft.com/)",
Expand Down Expand Up @@ -70,4 +75,7 @@ export const ModelProviderSensitiveFields: Record<string, boolean | undefined> =

// Ollama
OBOT_OLLAMA_MODEL_PROVIDER_HOST: true,

// Groq
OBOT_GROQ_MODEL_PROVIDER_API_KEY: true,
};
1 change: 1 addition & 0 deletions ui/admin/app/routes/_auth.model-providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const sortModelProviders = (modelProviders: ModelProvider[]) => {
CommonModelProviderIds.ANTHROPIC,
CommonModelProviderIds.OLLAMA,
CommonModelProviderIds.VOYAGE,
CommonModelProviderIds.GROQ,
];
const aIndex = preferredOrder.indexOf(a.id);
const bIndex = preferredOrder.indexOf(b.id);
Expand Down
Loading