Skip to content

Commit

Permalink
Merge pull request #16 from pipecat-ai/cst/gemini
Browse files Browse the repository at this point in the history
Add Google Gemini LLM options
  • Loading branch information
jptaylor authored Nov 18, 2024
2 parents 4d2d8f3 + 8cca23d commit 96b5947
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function APIKeysSection({ formState, setFormState }: Props) {
const config = {
daily: {
key: dailyKey,
required: true,
required: false,
},
[llmProvider]: {
key: llmKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export default function ConfigurationSection({
<ToggleGroupItem id="openai" value="openai" aria-label="OpenAI">
OpenAI
</ToggleGroupItem>
<ToggleGroupItem id="google" value="google" aria-label="Google">
Google
</ToggleGroupItem>
</ToggleGroup>
</ConfigurationItem>
</fieldset>
Expand Down
13 changes: 12 additions & 1 deletion clients/web/lib/llm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type LLMProvider = "anthropic" | "together" | "groq" | "openai";
export type LLMProvider = "anthropic" | "together" | "groq" | "openai" | "google";

export type LLMMessageRole = "system" | "user" | "assistant";

Expand Down Expand Up @@ -68,6 +68,17 @@ const llmModels: LLMModel[] = [
model: "gpt-4o-mini",
label: "gpt-4o mini",
},
// Google
{
service: "google",
model: "gemini-1.5-flash",
label: "Gemini 1.5 Flash"
},
{
service: "google",
model: "gemini-1.5-pro",
label: "Gemini 1.5 Pro"
},
];

export const defaultModel = llmModels[0];
Expand Down

0 comments on commit 96b5947

Please sign in to comment.