Skip to content

Commit

Permalink
Added context for aider
Browse files Browse the repository at this point in the history
  • Loading branch information
nang-dev committed Nov 8, 2024
1 parent 1162449 commit 5387f4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions gui/src/components/mainInput/InputToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
isMetaEquivalentKeyPressed,
} from "../../util";
import ModelSelect from "../modelSelection/ModelSelect";
import { isBareChatMode, isPerplexityMode } from "../../util/bareChatMode";
import { isBareChatMode, isPerplexityMode, isAiderMode} from "../../util/bareChatMode";
import { setDefaultModel } from "../../redux/slices/stateSlice";
import { RootState } from "@/redux/store";
import { useLocation } from "react-router-dom";
Expand Down Expand Up @@ -97,6 +97,7 @@ function InputToolbar(props: InputToolbarProps) {
const defaultModel = useSelector(defaultModelSelector);
const bareChatMode = isBareChatMode();
const perplexityMode = isPerplexityMode();
const aiderMode = isAiderMode();

const useActiveFile = useSelector(selectUseActiveFile);
const allModels = useSelector(
Expand Down Expand Up @@ -128,9 +129,8 @@ function InputToolbar(props: InputToolbarProps) {
id="input-toolbar"
>
<span className="flex gap-2 items-center whitespace-nowrap">
{!bareChatMode && (
<>
{!perplexityMode && <ModelSelect />}
{!aiderMode && !perplexityMode && <ModelSelect />}
<StyledSpan
onClick={(e) => {
props.onAddContextItem();
Expand All @@ -141,7 +141,6 @@ function InputToolbar(props: InputToolbarProps) {
<PlusIcon className="h-2.5 w-2.5" aria-hidden="true" />
</StyledSpan>
</>
)}
{defaultModel &&
modelSupportsImages(
defaultModel.provider,
Expand Down
11 changes: 5 additions & 6 deletions gui/src/integrations/aider/aidergui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ function AiderGUI() {
to use PearAI Creator.
</>
);
}
}
if (aiderProcessState.state === "stopped") {
msg = (
<>
PearAI Creator (Powered By aider) process is not running. Please view{" "}
<a
href="https://trypear.ai/creator-troubleshooting"
target="_blank"
rel="noopener noreferrer"
<a
href="https://trypear.ai/creator-troubleshooting"
target="_blank"
rel="noopener noreferrer"
className="underline text-blue-300"
>
troubleshooting
Expand Down Expand Up @@ -480,7 +480,6 @@ const tutorialContent = {
copyText: "Make a new FAQ page for my website",
},
moreInfo: [
"- Type '@' to add file context to your request.",
"- Ignore system ```<<< SEARCH REPLACE >>>``` messages. These are for the system to make edits for you automatically."
]
}
Expand Down

0 comments on commit 5387f4b

Please sign in to comment.