Skip to content

Commit 6d22f8a

Browse files
committed
chore: rename SiliconCloudProvider -> SiliconCloudHandler
1 parent e7fa2ba commit 6d22f8a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/api/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import {
4040
FeatherlessHandler,
4141
VercelAiGatewayHandler,
4242
DeepInfraHandler,
43-
SiliconCloudProvider,
43+
SiliconCloudHandler,
4444
} from "./providers"
4545
import { NativeOllamaHandler } from "./providers/native-ollama"
4646

@@ -167,7 +167,7 @@ export function buildApiHandler(configuration: ProviderSettings): ApiHandler {
167167
case "vercel-ai-gateway":
168168
return new VercelAiGatewayHandler(options)
169169
case "siliconcloud":
170-
return new SiliconCloudProvider(options)
170+
return new SiliconCloudHandler(options)
171171
default:
172172
apiProvider satisfies "gemini-cli" | undefined
173173
return new AnthropicHandler(options)

src/api/providers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export { OpenRouterHandler } from "./openrouter"
2424
export { QwenCodeHandler } from "./qwen-code"
2525
export { RequestyHandler } from "./requesty"
2626
export { SambaNovaHandler } from "./sambanova"
27-
export { SiliconCloudProvider } from "./siliconcloud"
27+
export { SiliconCloudHandler } from "./siliconcloud"
2828
export { UnboundHandler } from "./unbound"
2929
export { VertexHandler } from "./vertex"
3030
export { VsCodeLmHandler } from "./vscode-lm"

src/api/providers/siliconcloud.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ApiHandlerCreateMessageMetadata } from ".."
1313

1414
const SILICON_CLOUD_PROVIDER_NAME = "siliconcloud" as const
1515

16-
export class SiliconCloudProvider extends OpenAiHandler {
16+
export class SiliconCloudHandler extends OpenAiHandler {
1717
constructor(options: ApiHandlerOptions) {
1818
const apiLine = options.siliconCloudApiLine || "china"
1919

0 commit comments

Comments
 (0)