mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-14 23:21:19 +00:00
19 lines
588 B
TypeScript
19 lines
588 B
TypeScript
import { type GroqModelId, groqDefaultModelId, groqModels } from "@roo-code/types"
|
|
|
|
import type { ApiHandlerOptions } from "../../shared/api"
|
|
|
|
import { BaseOpenAiCompatibleProvider } from "./base-openai-compatible-provider"
|
|
|
|
export class GroqHandler extends BaseOpenAiCompatibleProvider<GroqModelId> {
|
|
constructor(options: ApiHandlerOptions) {
|
|
super({
|
|
...options,
|
|
providerName: "Groq",
|
|
baseURL: "https://api.groq.com/openai/v1",
|
|
apiKey: options.groqApiKey,
|
|
defaultProviderModelId: groqDefaultModelId,
|
|
providerModels: groqModels,
|
|
defaultTemperature: 0.5,
|
|
})
|
|
}
|
|
}
|