mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
Co-authored-by: minisforum <no@mail.com> Co-authored-by: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com>
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import type { RegistryEntry } from "../../shared.ts";
|
|
import { resolvePublicCred } from "../../shared.ts";
|
|
|
|
export const grok_cliProvider: RegistryEntry = {
|
|
id: "grok-cli",
|
|
alias: "gc",
|
|
format: "openai",
|
|
executor: "grok-cli",
|
|
baseUrl: "https://cli-chat-proxy.grok.com/v1/chat/completions",
|
|
authType: "oauth",
|
|
authHeader: "bearer",
|
|
passthroughModels: true,
|
|
models: [
|
|
{
|
|
id: "grok-build",
|
|
name: "Grok Build",
|
|
contextLength: 256000,
|
|
unsupportedParams: [
|
|
"presencePenalty",
|
|
"frequencyPenalty",
|
|
"logprobs",
|
|
"topLogprobs",
|
|
"reasoningEffort",
|
|
],
|
|
},
|
|
{
|
|
id: "grok-composer-2.5-fast",
|
|
name: "Grok Composer 2.5 Fast",
|
|
contextLength: 200000,
|
|
unsupportedParams: [
|
|
"presencePenalty",
|
|
"frequencyPenalty",
|
|
"logprobs",
|
|
"topLogprobs",
|
|
"reasoningEffort",
|
|
],
|
|
},
|
|
],
|
|
oauth: {
|
|
clientIdEnv: "GROK_OAUTH_CLIENT_ID",
|
|
clientIdDefault: resolvePublicCred("grok_id", "GROK_OAUTH_CLIENT_ID"),
|
|
tokenUrl: "https://auth.x.ai/oauth2/token",
|
|
},
|
|
};
|