diff --git a/core/autocomplete/lineStream.ts b/core/autocomplete/lineStream.ts index 1ee0c5e88..035907529 100644 --- a/core/autocomplete/lineStream.ts +++ b/core/autocomplete/lineStream.ts @@ -129,7 +129,7 @@ export async function* filterCodeBlockLines(rawLines: LineStream): LineStream { return; } - if (line === "```") { + if (line.startsWith("```")) { waitingToSeeIfLineIsLast = line; } else { yield line; diff --git a/gui/src/pages/onboarding/existingUserOnboarding.tsx b/gui/src/pages/onboarding/existingUserOnboarding.tsx index d7670f794..f972344f4 100644 --- a/gui/src/pages/onboarding/existingUserOnboarding.tsx +++ b/gui/src/pages/onboarding/existingUserOnboarding.tsx @@ -33,8 +33,8 @@ function ExistingUserOnboarding() {

Use Improved Models?

- Continue now integrates with higher quality models for autocomplete - and codebase retrieval. + Continue now integrates with higher quality cloud models for + autocomplete and codebase retrieval.

setHovered2(true)} onMouseLeave={() => setHovered2(false)} > -

✨ Use optimized models

+

✨ Use cloud models

Continue's autocomplete and codebase retrieval will feel significantly improved. API calls are made to Fireworks/Voyage, but diff --git a/gui/src/pages/onboarding/onboarding.tsx b/gui/src/pages/onboarding/onboarding.tsx index 29555a35d..80336a922 100644 --- a/gui/src/pages/onboarding/onboarding.tsx +++ b/gui/src/pages/onboarding/onboarding.tsx @@ -8,9 +8,9 @@ import { Div, StyledButton } from "./components"; function Onboarding() { const navigate = useNavigate(); + const [hovered0, setHovered0] = useState(false); const [hovered1, setHovered1] = useState(false); const [hovered2, setHovered2] = useState(false); - const [hovered3, setHovered3] = useState(false); const [selected, setSelected] = useState(-1); @@ -21,23 +21,53 @@ function Onboarding() { Let's find the setup that works best for you

{ setSelected(0); }} + onMouseEnter={() => setHovered0(true)} + onMouseLeave={() => setHovered0(false)} + > +

✨ Cloud models

+

+ This is the best experience. Use the best available commercial models + to index code and answer questions. Code is still only ever stored + locally. +

+
+ {selected === 0 && ( +

+ Embeddings: Voyage Code 2 +
+
+ Autocomplete: Starcoder 7b via Fireworks AI (free trial) +
+
+ Chat: GPT-4, Claude 3, and others (free trial) +

+ )} +

+
{ + setSelected(1); + }} onMouseEnter={() => setHovered1(true)} onMouseLeave={() => setHovered1(false)} > -

🔒 Fully local

+

🔒 Local models

No code will leave your computer, but less powerful models are used. Works with Ollama, LM Studio and others.

- {selected === 0 && ( + {selected === 1 && (

Embeddings: Local sentence-transformers model
@@ -50,35 +80,6 @@ function Onboarding() {

)}

-
{ - setSelected(1); - }} - onMouseEnter={() => setHovered2(true)} - onMouseLeave={() => setHovered2(false)} - > -

✨ Optimized

-

- Use the best available commercial models to index code and answer - questions. Code is still only ever stored locally. -

-
- {selected === 1 && ( -

- Embeddings: Voyage Code 2 -
-
- Autocomplete: Starcoder 7b via Fireworks AI (free trial) -
-
- Chat: GPT-4, Claude 3, and others (free trial) -

- )} -

{/*

Read the docs @@ -89,21 +90,22 @@ function Onboarding() { color={"#1b84be"} disabled={false} selected={selected === 2} - hovered={hovered3} - onMouseEnter={() => setHovered3(true)} - onMouseLeave={() => setHovered3(false)} + hovered={hovered2} + onMouseEnter={() => setHovered2(true)} + onMouseLeave={() => setHovered2(false)} onClick={() => { setSelected(2); postToIde("openConfigJson", undefined); }} > -

⚙️ Custom

+

⚙️ Your own models

+ Continue lets you use your own API key or self-hosted LLMs.{" "} Read the docs {" "} - to learn more and fully customize Continue by opening config.json. - This can always be done later. + to learn more about using config.json to customize Continue. This can + always be done later.

{selected === 2 && ( @@ -126,19 +128,19 @@ function Onboarding() { { postToIde("completeOnboarding", { - mode: ["local", "optimized", "custom"][selected] as any, + mode: ["optimized", "local", "custom"][selected] as any, }); setLocalStorage("onboardingComplete", true); - if (selected === 0) { + if (selected === 1) { navigate("/localOnboarding"); } else { // Only needed when we switch from the default (local) embeddings provider