Skip to content

Commit

Permalink
Added title
Browse files Browse the repository at this point in the history
  • Loading branch information
nang-dev committed Oct 18, 2024
1 parent 43961cd commit 386ca9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/llm/llms/Aider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class Aider extends BaseLLM {
options.setCredentials || (async () => {}),
);
console.log("Aider constructor called");
this.startAiderChat("claude-3-5-sonnet-20240620", this.apiKey);
// this.startAiderChat(this.model, this.apiKey);
//this.startAiderChat("claude-3-5-sonnet-20240620", this.apiKey);
this.startAiderChat(this.model, this.apiKey);
}

public setPearAIAccessToken(value: string | undefined): void {
Expand Down
2 changes: 1 addition & 1 deletion gui/src/components/mainInput/TipTapEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const HoverTextDiv = styled.div`
const getPlaceholder = (defaultModel, historyLength: number) => {
if (defaultModel?.title?.toLowerCase() === "aider") {
return historyLength === 0
? "Ask for a feature or a change to your project and I'll take care of it for you!"
? "Ask me to create, change, or fix anything..."
: "Send a follow-up";
}

Expand Down
7 changes: 7 additions & 0 deletions gui/src/pages/gui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,14 @@ function GUI() {
<>
<TopGuiDiv ref={topGuiDivRef} onScroll={handleScroll}>
<div className="mx-2">
{defaultModel?.title?.toLowerCase() === "aider" && (
<div className="pl-2 mt-8 border-b border-gray-700">
<h1 className="text-2xl font-bold mb-2">PearAI Creator (Powered by Aider)</h1>
<p className="text-sm text-gray-400">Ask for a feature, describe a bug, or ask for a change to your project and PearAI will take care of everything for you!</p>
</div>
)}
<StepsDiv>

{state.history.map((item, index: number) => {
return (
<Fragment key={index}>
Expand Down

0 comments on commit 386ca9f

Please sign in to comment.