Skip to content

Commit

Permalink
Feat/gemini flash (#1352)
Browse files Browse the repository at this point in the history
* Remove duplicate item from array

* Add references to Gemini Flash

* Update documentation to ref Gemini Flash
  • Loading branch information
pzaback authored Jun 4, 2024
1 parent 5224572 commit 321050d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ declare global {
// Gemini
| "gemini-pro"
| "gemini-1.5-pro-latest"
| "gemini-1.5-flash-latest"
// Mistral
| "mistral-tiny"
| "mistral-small"
Expand Down
1 change: 0 additions & 1 deletion core/llm/autodetect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ const PARALLEL_PROVIDERS: ModelProvider[] = [
"bedrock",
"deepinfra",
"gemini",
"gemini",
"huggingface-inference-api",
"huggingface-tgi",
"mistral",
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/reference/Model Providers/geminiapi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gemini API

The Google Gemini API is currently in beta. You can [create an API key in Google AI Studio](https://aistudio.google.com) and use `gemini-1.5-pro-latest`. Change `~/.continue/config.json` to look like this:
The Google Gemini API is currently in beta. You can [create an API key in Google AI Studio](https://aistudio.google.com) and use `gemini-1.5-pro-latest`. Change `~/.continue/config.json` to include the following entry in the "models" array:

```json title="~/.continue/config.json"
{
Expand All @@ -15,4 +15,6 @@ The Google Gemini API is currently in beta. You can [create an API key in Google
}
```

Google has also released a more lightweight version of the model that still has a one-million-token context window and multimodal capabilities named Gemini Flash. It can be accessed by adding an entry in the models array similar to the above, but substituting "flash" for "pro" in the `title` and `model` values.

[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Gemini.ts)
2 changes: 1 addition & 1 deletion docs/docs/setup/select-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _You can also use other open-source chat models by adding them to your `config.j
#### Gemini Pro from Google

- Unlimited budget: `gemini-pro-1.5-latest`
- Limited budget: `gemini-pro-1.0`
- Limited budget: `gemini-flash-1.5-latest` or `gemini-pro-1.0`

_You can also use other commercial chat models by adding them to your `config.json`._

Expand Down

0 comments on commit 321050d

Please sign in to comment.