Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/api/providers/pearai/pearai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl

if (modelId.startsWith("pearai")) {
try {
// TODO: For some reason, if we move this fetch to above this if statement, it breaks everything)
const response = await fetch(`${PEARAI_URL}/getPearAIAgentModels`)
if (!response.ok) {
throw new Error(`Failed to fetch models: ${response.statusText}`)
Expand Down Expand Up @@ -117,6 +118,7 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
}

getModel(): { id: string; info: ModelInfo } {
// TODO: this.pearAiModelsResponse is always undefined so we curretly have to just use client side model info
if (this.options.apiModelId) {
let modelInfo = null
if (this.options.apiModelId.startsWith("pearai")) {
Expand Down
2 changes: 2 additions & 0 deletions src/api/providers/pearai/pearaiGeneric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export class PearAIGenericHandler extends BaseProvider implements SingleCompleti
constructor(options: OpenAiHandlerOptions) {
super()
this.options = options
console.dir("Model ID")
console.dir(this.options.openAiModelId)

const baseURL = this.options.openAiBaseUrl ?? "https://api.openai.com/v1"
const apiKey = this.options.openAiApiKey ?? "not-provided"
Expand Down
1 change: 0 additions & 1 deletion src/services/mcp/McpHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ export class McpHub {

// Validate the config using McpSettingsSchema
const result = McpSettingsSchema.safeParse(config)
console.log("IM HERE 10101", result)
if (result.success) {
await this.updateServerConnections(result.data.mcpServers || {})
} else {
Expand Down
30 changes: 16 additions & 14 deletions webview-ui/src/components/chat/TaskHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,22 +251,18 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
display: "flex",
alignItems: "center",
}}>
<div
style={{
width: 30,
height: "1.2em",
background:
"linear-gradient(to right, transparent, var(--vscode-badge-background))",
}}
/>
<div
style={{
cursor: "pointer",
color: "var(--vscode-badge-foreground)",
color: "var(--vscode-foreground)",
fontSize: "11px",
paddingRight: 8,
paddingLeft: 4,
padding: "2px 8px",
backgroundColor: "var(--vscode-badge-background)",
borderRadius: "3px",
border: "1px solid var(--vscode-button-secondaryBackground)",
display: "flex",
alignItems: "center",
height: "18px",
}}
onClick={() => setIsTextExpanded(!isTextExpanded)}>
{t("chat:task.seeMore")}
Expand All @@ -278,11 +274,17 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
<div
style={{
cursor: "pointer",
color: "var(--vscode-badge-foreground)",
color: "var(--vscode-foreground)",
fontSize: "11px",
marginLeft: "auto",
textAlign: "right",
paddingRight: 8,
padding: "2px 8px",
backgroundColor: "var(--vscode-badge-background)",
borderRadius: "3px",
border: "1px solid var(--vscode-button-secondaryBackground)",
display: "inline-flex",
alignItems: "center",
height: "18px",
width: "fit-content",
}}
onClick={() => setIsTextExpanded(!isTextExpanded)}>
{t("chat:task.seeLess")}
Expand Down
Loading