Merge branch 'staging' into nate/feature-flags-gone

This commit is contained in:
Nate Sesti 2025-02-26 00:45:58 -08:00 • committed by GitHub
commit 1bd7d224d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 27 additions and 23 deletions

View file

@ -145,6 +145,12 @@ class Anthropic extends BaseLLM {
signal: AbortSignal,
options: CompletionOptions,
): AsyncGenerator<ChatMessage> {
if (!this.apiKey || this.apiKey === "") {
throw new Error(
"Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.",
);
}
const shouldCacheSystemMessage =
!!this.systemMessage && this.cacheBehavior?.cacheSystemMessage;
const systemMessage: string = stripImages(

View file

@ -16,7 +16,7 @@ Other recommended chat models include:
- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
- [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2)
- [Gemini 1.5 Pro from Google](https://hub.continue.dev/google/gemini-1.5-pro)
- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash)
- [Llama 3.1 8b from Meta on Ollama](https://hub.continue.dev/ollama/llama3.1-8b) for a fully local experience
{/* HUB_TODO nonexistent blocks */}
{/* - Deepseek Coder 2 from deepseek on [Ollama](https://hub.continue.dev/explore/models) or [LM Studio](https://hub.continue.dev/explore/models) */}

View file

@ -12,15 +12,15 @@ You can get an API key from the [Google AI Studio](https://aistudio.google.com/)
## Chat model
We recommend configuring **Gemini 1.5 Pro** as your chat model.
We recommend configuring **Gemini 2.0 Flash** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
- name: Gemini 1.5 Pro
- name: Gemini 2.0 Flash
provider: gemini
model: gemini-1.5-pro-latest
model: gemini-2.0-flash
apiKey: <YOUR_GEMINI_API_KEY>
```
</TabItem>
@ -29,9 +29,9 @@ We recommend configuring **Gemini 1.5 Pro** as your chat model.
{
"models": [
{
"title": "Gemini 1.5 Pro",
"title": "Gemini 2.0 Flash",
"provider": "gemini",
"model": "gemini-1.5-pro-latest",
"model": "gemini-2.0-flash",
"apiKey": "<YOUR_GEMINI_API_KEY>"
}
]

View file

@ -20,7 +20,7 @@ For the best overall Chat experience, you will want to use a 400B+ parameter mod
### Claude Sonnet 3.5 from Anthropic
Our current top recommendation is Claude Sonnet 3.7 from [Anthropic](../model-providers/top-level/anthropic.mdx).
Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic.mdx).
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
@ -29,9 +29,9 @@ Our current top recommendation is Claude Sonnet 3.7 from [Anthropic](../model-pr
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
- name: Claude 3.5 Sonnet
- name: Claude 3.7 Sonnet
provider: anthropic
model: claude-3-5-sonnet-latest
model: claude-3-7-sonnet-latest
apiKey: <YOUR_ANTHROPIC_API_KEY>
```
</TabItem>
@ -237,20 +237,20 @@ If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), t
</TabItem>
</Tabs>
### Gemini 1.5 Pro from Google
### Gemini 2.0 Flash from Google
If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 1.5 Pro.
If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 2.0 Flash.
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
Add the [Gemini 1.5 Pro block](https://hub.continue.dev/google/gemini-1.5-pro) from the hub
Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub
</TabItem>
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
- name: Gemini 1.5 Pro
- name: Gemini 2.0 Flash
provider: gemini
model: gemini-1.5-pro-latest
model: gemini-2.0-flash
apiKey: <YOUR_GEMINI_API_KEY>
```
</TabItem>
@ -259,9 +259,9 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini.m
{
"models": [
{
"title": "Gemini 1.5 Pro",
"title": "Gemini 2.0 Flash",
"provider": "gemini",
"model": "gemini-1.5-pro-latest",
"model": "gemini-2.0-flash",
"apiKey": "<YOUR_GEMINI_API_KEY>"
}
]

View file

@ -111,16 +111,16 @@ import Tabs from "@theme/Tabs";
]
```
### 来自 Google 的 Gemini 1.5 Pro
### 来自 Google 的 Gemini 2.0 Flash
如果你倾向于使用来自 [Google](../customize/model-providers/top-level/gemini.md) 的模型,那么我们推荐 Gemini 1.5 Pro 。
如果你倾向于使用来自 [Google](../customize/model-providers/top-level/gemini.md) 的模型,那么我们推荐 Gemini 2.0 Flash。
```json title="config.json"
"models": [
{
"title": "Gemini 1.5 Pro",
"title": "Gemini 2.0 Flash",
"provider": "gemini",
"model": "gemini-1.5-pro-latest",
"model": "gemini-2.0-flash",
"apiKey": "[GEMINI_API_KEY]"
}
]

View file

@ -14,5 +14,5 @@ sidebar_position: 2
否则,以下是一些最好的选择:
- [GPT-4o](../model-providers/top-level/openai.md)
- [Gemini 1.5 Pro](../model-providers/top-level/gemini.md)
- [Gemini 2.0 Flash](../model-providers/top-level/gemini.md)
- [Llama3.1 405B](../tutorials/llama3.1.md)

View file

@ -37,7 +37,6 @@ export const handleJetBrainsOSRMetaKeyIssues = (
if (e.key in handlers) {
e.stopPropagation();
debugger;
e.preventDefault();
handlers[e.key]();
}

View file

@ -43,7 +43,6 @@ export const streamResponseAfterToolCall = createAsyncThunk<
content: renderContextItems(toolOutput),
toolCallId,
};
debugger;
dispatch(streamUpdate([newMessage]));
dispatch(
addContextItemsAtIndex({