Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
saoudrizwan committed Sep 24, 2024
1 parent 7a2f1ba commit 05389b7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/api/providers/bedrock.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AnthropicBedrock from "@anthropic-ai/bedrock-sdk"
import { Anthropic } from "@anthropic-ai/sdk"
import { ApiHandler, ApiHandlerMessageResponse } from "."
import { ApiHandlerOptions, bedrockDefaultModelId, BedrockModelId, bedrockModels, ModelInfo } from "../shared/api"
import { ApiHandler, ApiHandlerMessageResponse } from "../"
import { ApiHandlerOptions, bedrockDefaultModelId, BedrockModelId, bedrockModels, ModelInfo } from "../../shared/api"

// https://docs.anthropic.com/en/api/claude-on-amazon-bedrock
export class AwsBedrockHandler implements ApiHandler {
Expand Down
6 changes: 3 additions & 3 deletions src/api/providers/gemini.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Anthropic } from "@anthropic-ai/sdk"
import { FunctionCallingMode, GoogleGenerativeAI } from "@google/generative-ai"
import { ApiHandler, ApiHandlerMessageResponse } from "."
import { ApiHandlerOptions, geminiDefaultModelId, GeminiModelId, geminiModels, ModelInfo } from "../shared/api"
import { ApiHandler, ApiHandlerMessageResponse } from "../"
import { ApiHandlerOptions, geminiDefaultModelId, GeminiModelId, geminiModels, ModelInfo } from "../../shared/api"
import {
convertAnthropicMessageToGemini,
convertAnthropicToolToGemini,
convertGeminiResponseToAnthropic,
} from "./transform/gemini-format"
} from "../transform/gemini-format"

export class GeminiHandler implements ApiHandler {
private options: ApiHandlerOptions
Expand Down
6 changes: 3 additions & 3 deletions src/api/providers/ollama.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Anthropic } from "@anthropic-ai/sdk"
import OpenAI from "openai"
import { ApiHandler, ApiHandlerMessageResponse } from "."
import { ApiHandlerOptions, ModelInfo, openAiModelInfoSaneDefaults } from "../shared/api"
import { convertToAnthropicMessage, convertToOpenAiMessages } from "./transform/openai-format"
import { ApiHandler, ApiHandlerMessageResponse } from "../"
import { ApiHandlerOptions, ModelInfo, openAiModelInfoSaneDefaults } from "../../shared/api"
import { convertToAnthropicMessage, convertToOpenAiMessages } from "../transform/openai-format"

export class OllamaHandler implements ApiHandler {
private options: ApiHandlerOptions
Expand Down
8 changes: 4 additions & 4 deletions src/api/providers/openai-native.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Anthropic } from "@anthropic-ai/sdk"
import OpenAI from "openai"
import { ApiHandler, ApiHandlerMessageResponse } from "."
import { ApiHandler, ApiHandlerMessageResponse } from "../"
import {
ApiHandlerOptions,
ModelInfo,
openAiNativeDefaultModelId,
OpenAiNativeModelId,
openAiNativeModels,
} from "../shared/api"
import { convertToAnthropicMessage, convertToOpenAiMessages } from "./transform/openai-format"
import { convertO1ResponseToAnthropicMessage, convertToO1Messages } from "./transform/o1-format"
} from "../../shared/api"
import { convertToAnthropicMessage, convertToOpenAiMessages } from "../transform/openai-format"
import { convertO1ResponseToAnthropicMessage, convertToO1Messages } from "../transform/o1-format"

export class OpenAiNativeHandler implements ApiHandler {
private options: ApiHandlerOptions
Expand Down
8 changes: 4 additions & 4 deletions src/api/providers/openrouter.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { Anthropic } from "@anthropic-ai/sdk"
import OpenAI from "openai"
import { ApiHandler, ApiHandlerMessageResponse } from "."
import { ApiHandler, ApiHandlerMessageResponse } from "../"
import {
ApiHandlerOptions,
ModelInfo,
openRouterDefaultModelId,
OpenRouterModelId,
openRouterModels,
} from "../shared/api"
import { convertToAnthropicMessage, convertToOpenAiMessages } from "./transform/openai-format"
} from "../../shared/api"
import { convertToAnthropicMessage, convertToOpenAiMessages } from "../transform/openai-format"
import axios from "axios"
import { convertO1ResponseToAnthropicMessage, convertToO1Messages } from "./transform/o1-format"
import { convertO1ResponseToAnthropicMessage, convertToO1Messages } from "../transform/o1-format"

export class OpenRouterHandler implements ApiHandler {
private options: ApiHandlerOptions
Expand Down
4 changes: 2 additions & 2 deletions src/api/providers/vertex.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AnthropicVertex } from "@anthropic-ai/vertex-sdk"
import { Anthropic } from "@anthropic-ai/sdk"
import { ApiHandler, ApiHandlerMessageResponse } from "."
import { ApiHandlerOptions, ModelInfo, vertexDefaultModelId, VertexModelId, vertexModels } from "../shared/api"
import { ApiHandler, ApiHandlerMessageResponse } from "../"
import { ApiHandlerOptions, ModelInfo, vertexDefaultModelId, VertexModelId, vertexModels } from "../../shared/api"

// https://docs.anthropic.com/en/api/claude-on-vertex-ai
export class VertexHandler implements ApiHandler {
Expand Down
6 changes: 5 additions & 1 deletion src/core/webview/ClaudeDevProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { ClaudeDev } from "../ClaudeDev"
import { ApiProvider } from "../../shared/api"
import { ExtensionMessage } from "../../shared/ExtensionMessage"
import { WebviewMessage } from "../../shared/WebviewMessage"
import { downloadTask, findLast, getNonce, getUri, selectImages } from "../../utils"
import { findLast } from "../../utils/array"
import { getNonce } from "./getNonce"
import { getUri } from "./getUri"
import { selectImages } from "../../integrations/misc/process-images"
import { downloadTask } from "../../integrations/misc/export-markdown"
import * as path from "path"
import fs from "fs/promises"
import { HistoryItem } from "../../shared/HistoryItem"
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/terminal/TerminalManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EventEmitter } from "events"
import pWaitFor from "p-wait-for"
import stripAnsi from "strip-ansi"
import * as vscode from "vscode"
import { arePathsEqual } from "../utils/path-helpers"
import { arePathsEqual } from "../../utils/path"

/*
TerminalManager:
Expand Down
4 changes: 2 additions & 2 deletions src/integrations/workspace/WorkspaceTracker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from "vscode"
import * as path from "path"
import { listFiles } from "../services/glob/list-files"
import { ClaudeDevProvider } from "../core/webviews/ClaudeDevProvider"
import { listFiles } from "../../services/glob/list-files"
import { ClaudeDevProvider } from "../../core/webview/ClaudeDevProvider"

const cwd = vscode.workspace.workspaceFolders?.map((folder) => folder.uri.fsPath).at(0)

Expand Down

0 comments on commit 05389b7

Please sign in to comment.