Download packages/agent-core-v2/src/human/llm/model.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/human/llm/model.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/human/llm/model.ts
-
curl -L -o model.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/human/llm/model.ts
624 Bytes
| import type { ModelCapability } from '#/llm/capability'; | |
| export interface LlmConnection { | |
| readonly baseUrl?: string; | |
| readonly apiKey?: string; | |
| readonly defaultHeaders?: Record<string, string>; | |
| readonly betaApi?: boolean; | |
| readonly vertexai?: boolean; | |
| } | |
| export interface LlmModel extends LlmConnection { | |
| readonly provider: string; | |
| readonly model: string; | |
| readonly capability: ModelCapability; | |
| readonly maxContextSize?: number; | |
| readonly maxInputSize?: number; | |
| } | |
| export function modelKey(model: LlmModel): string { | |
| return model.baseUrl === undefined ? model.model : `${model.baseUrl}#${model.model}`; | |
| } | |