update configs
This commit is contained in:
parent
5a00307ad3
commit
7a26e4a815
6 changed files with 26 additions and 30 deletions
|
|
@ -14,12 +14,6 @@ export function setupBestConfig(
|
|||
return {
|
||||
...config,
|
||||
models: config.models.filter((model) => model.provider !== "free-trial"),
|
||||
embeddingsProvider: {
|
||||
provider: "free-trial",
|
||||
},
|
||||
reranker: {
|
||||
name: "free-trial",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -30,9 +24,9 @@ export function setupLocalConfig(
|
|||
...config,
|
||||
models: [
|
||||
{
|
||||
title: "Llama 3",
|
||||
title: "Llama 3.1 8B",
|
||||
provider: "ollama",
|
||||
model: "llama3",
|
||||
model: "llama3.1:8b",
|
||||
},
|
||||
{
|
||||
title: ONBOARDING_LOCAL_MODEL_TITLE,
|
||||
|
|
@ -50,7 +44,6 @@ export function setupLocalConfig(
|
|||
provider: "ollama",
|
||||
model: "nomic-embed-text",
|
||||
},
|
||||
reranker: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -84,9 +77,9 @@ export function setupLocalConfigAfterFreeTrial(
|
|||
...config,
|
||||
models: [
|
||||
{
|
||||
title: "Llama 3",
|
||||
title: "Llama 3.1 8B",
|
||||
provider: "ollama",
|
||||
model: "llama3",
|
||||
model: "llama3.1:8b",
|
||||
},
|
||||
{
|
||||
title: ONBOARDING_LOCAL_MODEL_TITLE,
|
||||
|
|
|
|||
|
|
@ -1,21 +1,8 @@
|
|||
# 👋 Welcome to Continue
|
||||
|
||||
## ❗️ Before you get started
|
||||
|
||||
Continue is currently in the left sidebar, but we recommend moving it to the right. This way it won't cover your file explorer.
|
||||
|
||||
You can move it back at any time. If you close the sidebar, it can be re-opened with <kbd>Cmd/Ctrl</kbd> + <kbd>L</kbd>.
|
||||
# Move Continue to the right sidebar
|
||||
|
||||

|
||||
|
||||
## 🔑 Most important shortcuts
|
||||
Continue is currently in the left sidebar, but we recommend moving it to the right.
|
||||
This way it won't cover your file explorer.
|
||||
|
||||
> If you'd prefer different keys, these shortcuts can be customized in VS Code settings.
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>L</kbd> = Select code
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd> = Select code for follow-up
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>I</kbd> = Quick edit
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd> = Automatically debug terminal
|
||||
You can move it back at any time. If you close the sidebar, it can be re-opened with <kbd>Cmd/Ctrl</kbd> + <kbd>L</kbd>.
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import ProgressBar from "./loaders/ProgressBar";
|
|||
import PostHogPageView from "./PosthogPageView";
|
||||
import ProfileSwitcher from "./ProfileSwitcher";
|
||||
import { isNewUserOnboarding } from "./OnboardingCard/utils";
|
||||
import useHistory from "../hooks/useHistory";
|
||||
|
||||
const FOOTER_HEIGHT = "1.8em";
|
||||
|
||||
|
|
@ -108,6 +109,7 @@ const Layout = () => {
|
|||
const location = useLocation();
|
||||
const dispatch = useDispatch();
|
||||
const ideMessenger = useContext(IdeMessengerContext);
|
||||
const { saveSession } = useHistory(dispatch);
|
||||
|
||||
const dialogMessage = useSelector(
|
||||
(state: RootState) => state.uiState.dialogMessage,
|
||||
|
|
@ -189,6 +191,10 @@ const Layout = () => {
|
|||
"openOnboardingCard",
|
||||
async () => {
|
||||
navigate("/");
|
||||
|
||||
// Used to clear the chat panel before showing onboarding card
|
||||
saveSession();
|
||||
|
||||
dispatch(setOnboardingCard({ show: true, activeTab: "Best" }));
|
||||
},
|
||||
[],
|
||||
|
|
@ -198,6 +204,10 @@ const Layout = () => {
|
|||
"setupLocalConfig",
|
||||
async () => {
|
||||
navigate("/");
|
||||
|
||||
// Used to clear the chat panel before showing onboarding card
|
||||
saveSession();
|
||||
|
||||
dispatch(setOnboardingCard({ show: true, activeTab: "Local" }));
|
||||
},
|
||||
[navigate],
|
||||
|
|
@ -208,6 +218,9 @@ const Layout = () => {
|
|||
isNewUserOnboarding() &&
|
||||
(location.pathname === "/" || location.pathname === "/index.html")
|
||||
) {
|
||||
// Used to clear the chat panel before showing onboarding card
|
||||
saveSession();
|
||||
|
||||
dispatch(setOnboardingCard({ show: true, activeTab: "Quickstart" }));
|
||||
}
|
||||
}, [location]);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ export function useSubmitOnboarding(mode: OnboardingModes) {
|
|||
const { openTutorialCard } = useTutorialCard();
|
||||
|
||||
function submitOnboarding() {
|
||||
debugger;
|
||||
const onboardingStatus = getLocalStorage("onboardingStatus");
|
||||
|
||||
// Always close the onboarding card and update config.json
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { useNavigationListener } from "../hooks/useNavigationListener";
|
|||
import { useWebviewListener } from "../hooks/useWebviewListener";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { setOnboardingCard } from "../redux/slices/uiStateSlice";
|
||||
import useHistory from "../hooks/useHistory";
|
||||
|
||||
interface MoreActionRowProps {
|
||||
title: string;
|
||||
|
|
@ -55,6 +56,7 @@ function MorePage() {
|
|||
const dispatch = useDispatch();
|
||||
const navigate = useNavigate();
|
||||
const ideMessenger = useContext(IdeMessengerContext);
|
||||
const { saveSession } = useHistory(dispatch);
|
||||
|
||||
const [indexingState, setIndexingState] = useState<IndexingProgressUpdate>({
|
||||
desc: "Loading indexing config",
|
||||
|
|
@ -117,6 +119,8 @@ function MorePage() {
|
|||
buttonText="Open quickstart"
|
||||
onClick={() => {
|
||||
navigate("/");
|
||||
// Used to clear the chat panel before showing onboarding card
|
||||
saveSession();
|
||||
dispatch(setOnboardingCard({ show: true, activeTab: "Best" }));
|
||||
ideMessenger.post("showTutorial", undefined);
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export function getFontSize(): number {
|
|||
}
|
||||
|
||||
export function isJetBrains() {
|
||||
return getLocalStorage("ide") === "jetbrains";
|
||||
return getLocalStorage("ide") !== "jetbrains";
|
||||
}
|
||||
|
||||
export function isWebEnvironment(): boolean {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue