@arcships/aimux 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/error.d.ts +28 -137
- package/dist/error.js +71 -100
- package/dist/generated/ops.d.ts +75 -0
- package/dist/generated/ops.js +80 -0
- package/dist/generated/types.d.ts +5613 -0
- package/dist/{types/CallOptions.js → generated/types.js} +1 -0
- package/dist/index.d.ts +144 -211
- package/dist/index.js +314 -344
- package/dist/native.d.ts +29 -1
- package/dist/native.js +99 -29
- package/dist/types.d.ts +1 -144
- package/dist/types.js +0 -3
- package/index.d.ts +21 -545
- package/index.js +57 -112
- package/package.json +16 -13
- package/dist/types/AiMuxError.d.ts +0 -66
- package/dist/types/AiMuxError.js +0 -2
- package/dist/types/ApiCallError.d.ts +0 -75
- package/dist/types/ApiCallError.js +0 -2
- package/dist/types/AspectRatio.d.ts +0 -11
- package/dist/types/AspectRatio.js +0 -3
- package/dist/types/AudioChunk.d.ts +0 -8
- package/dist/types/AudioChunk.js +0 -3
- package/dist/types/AudioData.d.ts +0 -11
- package/dist/types/AudioData.js +0 -3
- package/dist/types/AudioInput.d.ts +0 -8
- package/dist/types/AudioInput.js +0 -3
- package/dist/types/BreakKind.d.ts +0 -1
- package/dist/types/BreakKind.js +0 -3
- package/dist/types/CallOptions.d.ts +0 -117
- package/dist/types/CatalogueSource.d.ts +0 -4
- package/dist/types/CatalogueSource.js +0 -3
- package/dist/types/ChatCompletion.d.ts +0 -16
- package/dist/types/ChatCompletion.js +0 -2
- package/dist/types/ChatCompletionChoice.d.ts +0 -8
- package/dist/types/ChatCompletionChoice.js +0 -2
- package/dist/types/ChatCompletionChunk.d.ts +0 -15
- package/dist/types/ChatCompletionChunk.js +0 -2
- package/dist/types/ChatCompletionChunkChoice.d.ts +0 -8
- package/dist/types/ChatCompletionChunkChoice.js +0 -2
- package/dist/types/ChatCompletionChunkFunction.d.ts +0 -4
- package/dist/types/ChatCompletionChunkFunction.js +0 -3
- package/dist/types/ChatCompletionChunkToolCall.d.ts +0 -7
- package/dist/types/ChatCompletionChunkToolCall.js +0 -2
- package/dist/types/ChatCompletionDelta.d.ts +0 -7
- package/dist/types/ChatCompletionDelta.js +0 -2
- package/dist/types/ChatCompletionFunction.d.ts +0 -4
- package/dist/types/ChatCompletionFunction.js +0 -3
- package/dist/types/ChatCompletionMessage.d.ts +0 -9
- package/dist/types/ChatCompletionMessage.js +0 -2
- package/dist/types/ChatCompletionToolCall.d.ts +0 -6
- package/dist/types/ChatCompletionToolCall.js +0 -2
- package/dist/types/ChatCompletionUsage.d.ts +0 -9
- package/dist/types/ChatCompletionUsage.js +0 -2
- package/dist/types/CompletionTokensDetails.d.ts +0 -3
- package/dist/types/CompletionTokensDetails.js +0 -3
- package/dist/types/ContentPart.d.ts +0 -112
- package/dist/types/ContentPart.js +0 -2
- package/dist/types/EmbeddingCallOptions.d.ts +0 -33
- package/dist/types/EmbeddingCallOptions.js +0 -2
- package/dist/types/EmbeddingResponse.d.ts +0 -16
- package/dist/types/EmbeddingResponse.js +0 -2
- package/dist/types/EmbeddingResult.d.ts +0 -33
- package/dist/types/EmbeddingResult.js +0 -2
- package/dist/types/EmbeddingUsage.d.ts +0 -9
- package/dist/types/EmbeddingUsage.js +0 -3
- package/dist/types/FileBytes.d.ts +0 -12
- package/dist/types/FileBytes.js +0 -3
- package/dist/types/FileData.d.ts +0 -25
- package/dist/types/FileData.js +0 -2
- package/dist/types/FilePart.d.ts +0 -8
- package/dist/types/FilePart.js +0 -2
- package/dist/types/Fingerprint.d.ts +0 -21
- package/dist/types/Fingerprint.js +0 -3
- package/dist/types/FinishReason.d.ts +0 -14
- package/dist/types/FinishReason.js +0 -2
- package/dist/types/FinishReasonUnified.d.ts +0 -4
- package/dist/types/FinishReasonUnified.js +0 -3
- package/dist/types/FunctionTool.d.ts +0 -35
- package/dist/types/FunctionTool.js +0 -2
- package/dist/types/GenerateContent.d.ts +0 -88
- package/dist/types/GenerateContent.js +0 -2
- package/dist/types/GenerateObjectResult.d.ts +0 -48
- package/dist/types/GenerateObjectResult.js +0 -2
- package/dist/types/GenerateResult.d.ts +0 -45
- package/dist/types/GenerateResult.js +0 -2
- package/dist/types/GenerateTextOptions.d.ts +0 -62
- package/dist/types/GenerateTextOptions.js +0 -2
- package/dist/types/GenerateTextResult.d.ts +0 -81
- package/dist/types/GenerateTextResult.js +0 -2
- package/dist/types/HttpExchange.d.ts +0 -34
- package/dist/types/HttpExchange.js +0 -2
- package/dist/types/HttpRecord.d.ts +0 -12
- package/dist/types/HttpRecord.js +0 -3
- package/dist/types/ImageCallOptions.d.ts +0 -63
- package/dist/types/ImageCallOptions.js +0 -2
- package/dist/types/ImageFile.d.ts +0 -25
- package/dist/types/ImageFile.js +0 -2
- package/dist/types/ImageFileData.d.ts +0 -8
- package/dist/types/ImageFileData.js +0 -3
- package/dist/types/ImageOutputs.d.ts +0 -14
- package/dist/types/ImageOutputs.js +0 -3
- package/dist/types/ImageResponse.d.ts +0 -19
- package/dist/types/ImageResponse.js +0 -3
- package/dist/types/ImageResult.d.ts +0 -34
- package/dist/types/ImageResult.js +0 -2
- package/dist/types/ImageUsage.d.ts +0 -19
- package/dist/types/ImageUsage.js +0 -3
- package/dist/types/InputAudioFormat.d.ts +0 -13
- package/dist/types/InputAudioFormat.js +0 -3
- package/dist/types/InputRecord.d.ts +0 -16
- package/dist/types/InputRecord.js +0 -2
- package/dist/types/LanguageModelPromptMessage.d.ts +0 -20
- package/dist/types/LanguageModelPromptMessage.js +0 -2
- package/dist/types/MessageContent.d.ts +0 -5
- package/dist/types/MessageContent.js +0 -2
- package/dist/types/Modality.d.ts +0 -4
- package/dist/types/Modality.js +0 -3
- package/dist/types/ModelCapabilities.d.ts +0 -21
- package/dist/types/ModelCapabilities.js +0 -3
- package/dist/types/ModelCost.d.ts +0 -10
- package/dist/types/ModelCost.js +0 -3
- package/dist/types/ModelId.d.ts +0 -7
- package/dist/types/ModelId.js +0 -3
- package/dist/types/ModelLimits.d.ts +0 -17
- package/dist/types/ModelLimits.js +0 -3
- package/dist/types/ModelMessage.d.ts +0 -9
- package/dist/types/ModelMessage.js +0 -2
- package/dist/types/ModelModalities.d.ts +0 -8
- package/dist/types/ModelModalities.js +0 -2
- package/dist/types/ModelPrompt.d.ts +0 -7
- package/dist/types/ModelPrompt.js +0 -2
- package/dist/types/ModelSpec.d.ts +0 -33
- package/dist/types/ModelSpec.js +0 -2
- package/dist/types/ModelType.d.ts +0 -4
- package/dist/types/ModelType.js +0 -3
- package/dist/types/OutcomeRecord.d.ts +0 -19
- package/dist/types/OutcomeRecord.js +0 -2
- package/dist/types/OutcomeStatus.d.ts +0 -4
- package/dist/types/OutcomeStatus.js +0 -3
- package/dist/types/PrefixBreak.d.ts +0 -11
- package/dist/types/PrefixBreak.js +0 -2
- package/dist/types/PromptTokensDetails.d.ts +0 -4
- package/dist/types/PromptTokensDetails.js +0 -3
- package/dist/types/ProviderAuditSpec.d.ts +0 -33
- package/dist/types/ProviderAuditSpec.js +0 -2
- package/dist/types/ProviderFamily.d.ts +0 -5
- package/dist/types/ProviderFamily.js +0 -3
- package/dist/types/ProviderName.d.ts +0 -258
- package/dist/types/ProviderName.js +0 -262
- package/dist/types/ProviderRecord.d.ts +0 -30
- package/dist/types/ProviderRecord.js +0 -2
- package/dist/types/ProviderTool.d.ts +0 -24
- package/dist/types/ProviderTool.js +0 -2
- package/dist/types/RawToolCall.d.ts +0 -16
- package/dist/types/RawToolCall.js +0 -2
- package/dist/types/ReasoningEffort.d.ts +0 -7
- package/dist/types/ReasoningEffort.js +0 -3
- package/dist/types/ReasoningMode.d.ts +0 -4
- package/dist/types/ReasoningMode.js +0 -3
- package/dist/types/ReasoningPart.d.ts +0 -9
- package/dist/types/ReasoningPart.js +0 -3
- package/dist/types/ReasoningSpec.d.ts +0 -39
- package/dist/types/ReasoningSpec.js +0 -2
- package/dist/types/ReasoningVisibility.d.ts +0 -4
- package/dist/types/ReasoningVisibility.js +0 -3
- package/dist/types/Recording.d.ts +0 -56
- package/dist/types/Recording.js +0 -2
- package/dist/types/RequestCacheHints.d.ts +0 -9
- package/dist/types/RequestCacheHints.js +0 -3
- package/dist/types/RequestInfo.d.ts +0 -12
- package/dist/types/RequestInfo.js +0 -2
- package/dist/types/RerankingCallOptions.d.ts +0 -42
- package/dist/types/RerankingCallOptions.js +0 -2
- package/dist/types/RerankingDocuments.d.ts +0 -15
- package/dist/types/RerankingDocuments.js +0 -2
- package/dist/types/RerankingRank.d.ts +0 -13
- package/dist/types/RerankingRank.js +0 -3
- package/dist/types/RerankingResponse.d.ts +0 -28
- package/dist/types/RerankingResponse.js +0 -2
- package/dist/types/RerankingResult.d.ts +0 -31
- package/dist/types/RerankingResult.js +0 -2
- package/dist/types/ResponseFormat.d.ts +0 -11
- package/dist/types/ResponseFormat.js +0 -2
- package/dist/types/ResponseInfo.d.ts +0 -30
- package/dist/types/ResponseInfo.js +0 -2
- package/dist/types/ResponseMetadata.d.ts +0 -8
- package/dist/types/ResponseMetadata.js +0 -3
- package/dist/types/ResponseRecord.d.ts +0 -13
- package/dist/types/ResponseRecord.js +0 -3
- package/dist/types/RetryError.d.ts +0 -9
- package/dist/types/RetryError.js +0 -2
- package/dist/types/RetryErrorReason.d.ts +0 -4
- package/dist/types/RetryErrorReason.js +0 -3
- package/dist/types/Role.d.ts +0 -4
- package/dist/types/Role.js +0 -3
- package/dist/types/RuntimeModel.d.ts +0 -22
- package/dist/types/RuntimeModel.js +0 -3
- package/dist/types/SearchCallOptions.d.ts +0 -55
- package/dist/types/SearchCallOptions.js +0 -2
- package/dist/types/SearchResponse.d.ts +0 -16
- package/dist/types/SearchResponse.js +0 -2
- package/dist/types/SearchResult.d.ts +0 -32
- package/dist/types/SearchResult.js +0 -2
- package/dist/types/SearchResultItem.d.ts +0 -33
- package/dist/types/SearchResultItem.js +0 -2
- package/dist/types/SessionCall.d.ts +0 -20
- package/dist/types/SessionCall.js +0 -3
- package/dist/types/SessionChainView.d.ts +0 -10
- package/dist/types/SessionChainView.js +0 -2
- package/dist/types/SessionSource.d.ts +0 -4
- package/dist/types/SessionSource.js +0 -3
- package/dist/types/SessionStepStat.d.ts +0 -27
- package/dist/types/SessionStepStat.js +0 -2
- package/dist/types/SessionView.d.ts +0 -16
- package/dist/types/SessionView.js +0 -2
- package/dist/types/Size.d.ts +0 -11
- package/dist/types/Size.js +0 -3
- package/dist/types/SourcePart.d.ts +0 -9
- package/dist/types/SourcePart.js +0 -3
- package/dist/types/SpeechCallOptions.d.ts +0 -56
- package/dist/types/SpeechCallOptions.js +0 -2
- package/dist/types/SpeechRequest.d.ts +0 -10
- package/dist/types/SpeechRequest.js +0 -2
- package/dist/types/SpeechResponse.d.ts +0 -24
- package/dist/types/SpeechResponse.js +0 -2
- package/dist/types/SpeechResult.d.ts +0 -34
- package/dist/types/SpeechResult.js +0 -2
- package/dist/types/StreamPart.d.ts +0 -173
- package/dist/types/StreamPart.js +0 -2
- package/dist/types/StreamTextResultAggregated.d.ts +0 -74
- package/dist/types/StreamTextResultAggregated.js +0 -2
- package/dist/types/TimeoutConfiguration.d.ts +0 -32
- package/dist/types/TimeoutConfiguration.js +0 -3
- package/dist/types/TimingRecord.d.ts +0 -7
- package/dist/types/TimingRecord.js +0 -3
- package/dist/types/TokenUsage.d.ts +0 -29
- package/dist/types/TokenUsage.js +0 -3
- package/dist/types/Tool.d.ts +0 -12
- package/dist/types/Tool.js +0 -2
- package/dist/types/ToolCall.d.ts +0 -48
- package/dist/types/ToolCall.js +0 -2
- package/dist/types/ToolCallRepairReply.d.ts +0 -19
- package/dist/types/ToolCallRepairReply.js +0 -2
- package/dist/types/ToolChoice.d.ts +0 -12
- package/dist/types/ToolChoice.js +0 -3
- package/dist/types/ToolResult.d.ts +0 -22
- package/dist/types/ToolResult.js +0 -2
- package/dist/types/TraceFilter.d.ts +0 -9
- package/dist/types/TraceFilter.js +0 -3
- package/dist/types/TraceRecord.d.ts +0 -54
- package/dist/types/TraceRecord.js +0 -2
- package/dist/types/TraceStats.d.ts +0 -20
- package/dist/types/TraceStats.js +0 -3
- package/dist/types/TranscriptionCallOptions.d.ts +0 -38
- package/dist/types/TranscriptionCallOptions.js +0 -2
- package/dist/types/TranscriptionRequest.d.ts +0 -9
- package/dist/types/TranscriptionRequest.js +0 -3
- package/dist/types/TranscriptionResponse.d.ts +0 -24
- package/dist/types/TranscriptionResponse.js +0 -2
- package/dist/types/TranscriptionResult.d.ts +0 -46
- package/dist/types/TranscriptionResult.js +0 -2
- package/dist/types/TranscriptionSegment.d.ts +0 -17
- package/dist/types/TranscriptionSegment.js +0 -3
- package/dist/types/TranscriptionStreamPart.d.ts +0 -70
- package/dist/types/TranscriptionStreamPart.js +0 -2
- package/dist/types/UploadFileCallOptions.d.ts +0 -27
- package/dist/types/UploadFileCallOptions.js +0 -2
- package/dist/types/UploadFileData.d.ts +0 -17
- package/dist/types/UploadFileData.js +0 -2
- package/dist/types/UploadFileResult.d.ts +0 -35
- package/dist/types/UploadFileResult.js +0 -2
- package/dist/types/Usage.d.ts +0 -13
- package/dist/types/Usage.js +0 -2
- package/dist/types/UsageSnapshot.d.ts +0 -18
- package/dist/types/UsageSnapshot.js +0 -2
- package/dist/types/Verdict.d.ts +0 -23
- package/dist/types/Verdict.js +0 -2
- package/dist/types/VerdictConfidence.d.ts +0 -4
- package/dist/types/VerdictConfidence.js +0 -3
- package/dist/types/VerdictKind.d.ts +0 -4
- package/dist/types/VerdictKind.js +0 -3
- package/dist/types/VideoCallOptions.d.ts +0 -84
- package/dist/types/VideoCallOptions.js +0 -2
- package/dist/types/VideoData.d.ts +0 -22
- package/dist/types/VideoData.js +0 -3
- package/dist/types/VideoFile.d.ts +0 -29
- package/dist/types/VideoFile.js +0 -2
- package/dist/types/VideoFileData.d.ts +0 -8
- package/dist/types/VideoFileData.js +0 -3
- package/dist/types/VideoFrameImage.d.ts +0 -17
- package/dist/types/VideoFrameImage.js +0 -2
- package/dist/types/VideoFrameType.d.ts +0 -6
- package/dist/types/VideoFrameType.js +0 -3
- package/dist/types/VideoPollOptions.d.ts +0 -13
- package/dist/types/VideoPollOptions.js +0 -3
- package/dist/types/VideoResponse.d.ts +0 -19
- package/dist/types/VideoResponse.js +0 -3
- package/dist/types/VideoResult.d.ts +0 -29
- package/dist/types/VideoResult.js +0 -2
- package/dist/types/Warning.d.ts +0 -23
- package/dist/types/Warning.js +0 -3
- package/dist/types/serde_json/JsonValue.d.ts +0 -3
- package/dist/types/serde_json/JsonValue.js +0 -3
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ProviderName — GENERATED by `scripts/gen_provider_names.py`.
|
|
3
|
-
// Do not edit manually; single source of truth is `provider-registry.json`.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.ProviderName = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* Names of all built-in OpenAI-compatible providers.
|
|
8
|
-
* Use `ProviderName.groq` etc. as the `name` argument of `provider()`.
|
|
9
|
-
*/
|
|
10
|
-
exports.ProviderName = {
|
|
11
|
-
abacus: 'abacus',
|
|
12
|
-
abliteration_ai: 'abliteration_ai',
|
|
13
|
-
ai21: 'ai21',
|
|
14
|
-
ai302: 'ai302',
|
|
15
|
-
ai_router: 'ai_router',
|
|
16
|
-
aiand: 'aiand',
|
|
17
|
-
aibadgr: 'aibadgr',
|
|
18
|
-
aigc2d: 'aigc2d',
|
|
19
|
-
aihubmix: 'aihubmix',
|
|
20
|
-
ails: 'ails',
|
|
21
|
-
aiml: 'aiml',
|
|
22
|
-
aki_io: 'aki_io',
|
|
23
|
-
albert: 'albert',
|
|
24
|
-
alibaba: 'alibaba',
|
|
25
|
-
alibaba_coding_plan: 'alibaba_coding_plan',
|
|
26
|
-
alibaba_coding_plan_cn: 'alibaba_coding_plan_cn',
|
|
27
|
-
alibaba_token_plan: 'alibaba_token_plan',
|
|
28
|
-
alibaba_token_plan_cn: 'alibaba_token_plan_cn',
|
|
29
|
-
ambient: 'ambient',
|
|
30
|
-
anyapi: 'anyapi',
|
|
31
|
-
anyscale: 'anyscale',
|
|
32
|
-
apertis: 'apertis',
|
|
33
|
-
api2d: 'api2d',
|
|
34
|
-
api2gpt: 'api2gpt',
|
|
35
|
-
apiserpent: 'apiserpent',
|
|
36
|
-
atlascloud: 'atlascloud',
|
|
37
|
-
atomic_chat: 'atomic_chat',
|
|
38
|
-
auriko: 'auriko',
|
|
39
|
-
azure_ai: 'azure_ai',
|
|
40
|
-
baichuan: 'baichuan',
|
|
41
|
-
baidu: 'baidu',
|
|
42
|
-
baidu_v2: 'baidu_v2',
|
|
43
|
-
bailing: 'bailing',
|
|
44
|
-
baseten: 'baseten',
|
|
45
|
-
berget: 'berget',
|
|
46
|
-
bigmodel: 'bigmodel',
|
|
47
|
-
blueclaw: 'blueclaw',
|
|
48
|
-
bytedance: 'bytedance',
|
|
49
|
-
byteplus: 'byteplus',
|
|
50
|
-
bytez: 'bytez',
|
|
51
|
-
canopywave: 'canopywave',
|
|
52
|
-
cerebras: 'cerebras',
|
|
53
|
-
chatgpt: 'chatgpt',
|
|
54
|
-
cherryin: 'cherryin',
|
|
55
|
-
chutes: 'chutes',
|
|
56
|
-
clarifai: 'clarifai',
|
|
57
|
-
claudinio: 'claudinio',
|
|
58
|
-
cline_pass: 'cline_pass',
|
|
59
|
-
closeai: 'closeai',
|
|
60
|
-
cloudferro_sherlock: 'cloudferro_sherlock',
|
|
61
|
-
cloudflare: 'cloudflare',
|
|
62
|
-
cloudflare_workers_ai: 'cloudflare_workers_ai',
|
|
63
|
-
codestral: 'codestral',
|
|
64
|
-
cometapi: 'cometapi',
|
|
65
|
-
commandcode: 'commandcode',
|
|
66
|
-
compactifai: 'compactifai',
|
|
67
|
-
copilot: 'copilot',
|
|
68
|
-
cortecs: 'cortecs',
|
|
69
|
-
coze: 'coze',
|
|
70
|
-
crof: 'crof',
|
|
71
|
-
crossmodel: 'crossmodel',
|
|
72
|
-
crusoe: 'crusoe',
|
|
73
|
-
daoxe: 'daoxe',
|
|
74
|
-
darkbloom: 'darkbloom',
|
|
75
|
-
databricks: 'databricks',
|
|
76
|
-
datarobot: 'datarobot',
|
|
77
|
-
deepbricks: 'deepbricks',
|
|
78
|
-
deepinfra: 'deepinfra',
|
|
79
|
-
deepseek: 'deepseek',
|
|
80
|
-
digitalocean: 'digitalocean',
|
|
81
|
-
dinference: 'dinference',
|
|
82
|
-
doubao: 'doubao',
|
|
83
|
-
doubleword: 'doubleword',
|
|
84
|
-
drun: 'drun',
|
|
85
|
-
ebcloud: 'ebcloud',
|
|
86
|
-
embercloud: 'embercloud',
|
|
87
|
-
empiriolabs: 'empiriolabs',
|
|
88
|
-
evroc: 'evroc',
|
|
89
|
-
fastcrw: 'fastcrw',
|
|
90
|
-
fastgpt: 'fastgpt',
|
|
91
|
-
fastrouter: 'fastrouter',
|
|
92
|
-
featherless_ai: 'featherless_ai',
|
|
93
|
-
firepass: 'firepass',
|
|
94
|
-
fireworks: 'fireworks',
|
|
95
|
-
freemodel: 'freemodel',
|
|
96
|
-
friendliai: 'friendliai',
|
|
97
|
-
frogbot: 'frogbot',
|
|
98
|
-
galadriel: 'galadriel',
|
|
99
|
-
gdc: 'gdc',
|
|
100
|
-
gigachat: 'gigachat',
|
|
101
|
-
github: 'github',
|
|
102
|
-
gmi: 'gmi',
|
|
103
|
-
gmicloud: 'gmicloud',
|
|
104
|
-
gonka24: 'gonka24',
|
|
105
|
-
gradient_ai: 'gradient_ai',
|
|
106
|
-
groq: 'groq',
|
|
107
|
-
helicone: 'helicone',
|
|
108
|
-
heroku: 'heroku',
|
|
109
|
-
hetzner: 'hetzner',
|
|
110
|
-
hosted_vllm: 'hosted_vllm',
|
|
111
|
-
hpc_ai: 'hpc_ai',
|
|
112
|
-
hyperbolic: 'hyperbolic',
|
|
113
|
-
iflowcn: 'iflowcn',
|
|
114
|
-
inception: 'inception',
|
|
115
|
-
inceptron: 'inceptron',
|
|
116
|
-
inference_net: 'inference_net',
|
|
117
|
-
inferencehub: 'inferencehub',
|
|
118
|
-
inferx: 'inferx',
|
|
119
|
-
infinity: 'infinity',
|
|
120
|
-
io_net: 'io_net',
|
|
121
|
-
jiekou: 'jiekou',
|
|
122
|
-
kenari: 'kenari',
|
|
123
|
-
kilo: 'kilo',
|
|
124
|
-
kimi: 'kimi',
|
|
125
|
-
kimi_for_coding: 'kimi_for_coding',
|
|
126
|
-
kiro: 'kiro',
|
|
127
|
-
kluster_ai: 'kluster_ai',
|
|
128
|
-
krutrim: 'krutrim',
|
|
129
|
-
kuae_cloud_coding_plan: 'kuae_cloud_coding_plan',
|
|
130
|
-
lambda_ai: 'lambda_ai',
|
|
131
|
-
lemonade: 'lemonade',
|
|
132
|
-
lemonfox_ai: 'lemonfox_ai',
|
|
133
|
-
libertai: 'libertai',
|
|
134
|
-
lilac: 'lilac',
|
|
135
|
-
lingyiwanwu: 'lingyiwanwu',
|
|
136
|
-
llama: 'llama',
|
|
137
|
-
llamagate: 'llamagate',
|
|
138
|
-
llmgateway: 'llmgateway',
|
|
139
|
-
llmtr: 'llmtr',
|
|
140
|
-
longcat: 'longcat',
|
|
141
|
-
lucidquery: 'lucidquery',
|
|
142
|
-
lynkr: 'lynkr',
|
|
143
|
-
matterai: 'matterai',
|
|
144
|
-
meganova: 'meganova',
|
|
145
|
-
merge_gateway: 'merge_gateway',
|
|
146
|
-
meta: 'meta',
|
|
147
|
-
meta_llama: 'meta_llama',
|
|
148
|
-
mimo: 'mimo',
|
|
149
|
-
minimax: 'minimax',
|
|
150
|
-
minimax_cn: 'minimax_cn',
|
|
151
|
-
minimax_cn_coding_plan: 'minimax_cn_coding_plan',
|
|
152
|
-
minimax_coding_plan: 'minimax_coding_plan',
|
|
153
|
-
mira: 'mira',
|
|
154
|
-
mixlayer: 'mixlayer',
|
|
155
|
-
moark: 'moark',
|
|
156
|
-
modal: 'modal',
|
|
157
|
-
model_oracle_ai: 'model_oracle_ai',
|
|
158
|
-
modelscope: 'modelscope',
|
|
159
|
-
moonshotai: 'moonshotai',
|
|
160
|
-
moonshotai_cn: 'moonshotai_cn',
|
|
161
|
-
morph: 'morph',
|
|
162
|
-
nanogpt: 'nanogpt',
|
|
163
|
-
ncompass: 'ncompass',
|
|
164
|
-
nearai: 'nearai',
|
|
165
|
-
nebius: 'nebius',
|
|
166
|
-
neon: 'neon',
|
|
167
|
-
neuralwatt: 'neuralwatt',
|
|
168
|
-
nextbit: 'nextbit',
|
|
169
|
-
nlp_cloud: 'nlp_cloud',
|
|
170
|
-
nous_research: 'nous_research',
|
|
171
|
-
novita: 'novita',
|
|
172
|
-
nscale: 'nscale',
|
|
173
|
-
nvidia_nim: 'nvidia_nim',
|
|
174
|
-
oci: 'oci',
|
|
175
|
-
ofox: 'ofox',
|
|
176
|
-
ohmygpt: 'ohmygpt',
|
|
177
|
-
ollama_cloud: 'ollama_cloud',
|
|
178
|
-
openaimax: 'openaimax',
|
|
179
|
-
openaisb: 'openaisb',
|
|
180
|
-
opencode: 'opencode',
|
|
181
|
-
opencode_go: 'opencode_go',
|
|
182
|
-
opencode_zen: 'opencode_zen',
|
|
183
|
-
orcarouter: 'orcarouter',
|
|
184
|
-
ovhcloud: 'ovhcloud',
|
|
185
|
-
parasail: 'parasail',
|
|
186
|
-
perfxcloud: 'perfxcloud',
|
|
187
|
-
perplexity: 'perplexity',
|
|
188
|
-
perplexity_agent: 'perplexity_agent',
|
|
189
|
-
petals: 'petals',
|
|
190
|
-
pinstripes: 'pinstripes',
|
|
191
|
-
pioneer: 'pioneer',
|
|
192
|
-
poe: 'poe',
|
|
193
|
-
poolside: 'poolside',
|
|
194
|
-
portkey: 'portkey',
|
|
195
|
-
ppinfra: 'ppinfra',
|
|
196
|
-
predibase: 'predibase',
|
|
197
|
-
privatemode_ai: 'privatemode_ai',
|
|
198
|
-
publicai: 'publicai',
|
|
199
|
-
qihang_ai: 'qihang_ai',
|
|
200
|
-
qihoo360: 'qihoo360',
|
|
201
|
-
qiniu_ai: 'qiniu_ai',
|
|
202
|
-
regolo_ai: 'regolo_ai',
|
|
203
|
-
reka_ai: 'reka_ai',
|
|
204
|
-
requesty: 'requesty',
|
|
205
|
-
reve: 'reve',
|
|
206
|
-
routing_run: 'routing_run',
|
|
207
|
-
sakana: 'sakana',
|
|
208
|
-
sambanova: 'sambanova',
|
|
209
|
-
sarvam: 'sarvam',
|
|
210
|
-
scaleway: 'scaleway',
|
|
211
|
-
scx_ai: 'scx_ai',
|
|
212
|
-
siliconflow: 'siliconflow',
|
|
213
|
-
snowflake: 'snowflake',
|
|
214
|
-
snowflake_cortex: 'snowflake_cortex',
|
|
215
|
-
stackit: 'stackit',
|
|
216
|
-
stepfun: 'stepfun',
|
|
217
|
-
stepfun_ai_step_plan: 'stepfun_ai_step_plan',
|
|
218
|
-
stepfun_step_plan: 'stepfun_step_plan',
|
|
219
|
-
subconscious: 'subconscious',
|
|
220
|
-
submodel: 'submodel',
|
|
221
|
-
synthetic: 'synthetic',
|
|
222
|
-
tencent: 'tencent',
|
|
223
|
-
tencent_coding_plan: 'tencent_coding_plan',
|
|
224
|
-
tencent_token_plan: 'tencent_token_plan',
|
|
225
|
-
tencent_token_plan_enterprise_auto: 'tencent_token_plan_enterprise_auto',
|
|
226
|
-
tencent_token_plan_enterprise_pro: 'tencent_token_plan_enterprise_pro',
|
|
227
|
-
tencent_token_plan_general_personal: 'tencent_token_plan_general_personal',
|
|
228
|
-
tencent_token_plan_hy_personal: 'tencent_token_plan_hy_personal',
|
|
229
|
-
tencent_tokenhub: 'tencent_tokenhub',
|
|
230
|
-
tensormesh: 'tensormesh',
|
|
231
|
-
the_grid_ai: 'the_grid_ai',
|
|
232
|
-
thinkingmachines: 'thinkingmachines',
|
|
233
|
-
tinfoil: 'tinfoil',
|
|
234
|
-
togetherai: 'togetherai',
|
|
235
|
-
tokenflux: 'tokenflux',
|
|
236
|
-
tokenpony: 'tokenpony',
|
|
237
|
-
trustedrouter: 'trustedrouter',
|
|
238
|
-
tundra: 'tundra',
|
|
239
|
-
umans_ai: 'umans_ai',
|
|
240
|
-
unorouter: 'unorouter',
|
|
241
|
-
upstage: 'upstage',
|
|
242
|
-
v0: 'v0',
|
|
243
|
-
venice: 'venice',
|
|
244
|
-
vercel: 'vercel',
|
|
245
|
-
vivgrid: 'vivgrid',
|
|
246
|
-
volc_engine: 'volc_engine',
|
|
247
|
-
vultr: 'vultr',
|
|
248
|
-
wafer: 'wafer',
|
|
249
|
-
wandb: 'wandb',
|
|
250
|
-
xiaomi_token_plan_ams: 'xiaomi_token_plan_ams',
|
|
251
|
-
xiaomi_token_plan_cn: 'xiaomi_token_plan_cn',
|
|
252
|
-
xiaomi_token_plan_sgp: 'xiaomi_token_plan_sgp',
|
|
253
|
-
xiaomimimo: 'xiaomimimo',
|
|
254
|
-
xpersona: 'xpersona',
|
|
255
|
-
xunfei: 'xunfei',
|
|
256
|
-
zai: 'zai',
|
|
257
|
-
zai_coding_plan: 'zai_coding_plan',
|
|
258
|
-
zeldoc: 'zeldoc',
|
|
259
|
-
zenmux: 'zenmux',
|
|
260
|
-
zhipu_v4: 'zhipu_v4',
|
|
261
|
-
zhipuai_coding_plan: 'zhipuai_coding_plan',
|
|
262
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* ② 配置侧:provider 身份(请求回放重建用)。
|
|
4
|
-
*/
|
|
5
|
-
export type ProviderRecord = {
|
|
6
|
-
/**
|
|
7
|
-
* `model.provider()`,如 "openai"。
|
|
8
|
-
*/
|
|
9
|
-
provider: string;
|
|
10
|
-
/**
|
|
11
|
-
* `model.model_id()`,如 "gpt-4o"。
|
|
12
|
-
*/
|
|
13
|
-
model_id: string;
|
|
14
|
-
/**
|
|
15
|
-
* provider 的 base_url。
|
|
16
|
-
*/
|
|
17
|
-
base_url: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* api_key 来源(不存明文):"env:OPENAI_API_KEY" / "explicit" / "none" / "unknown"。
|
|
20
|
-
*/
|
|
21
|
-
api_key_source: string;
|
|
22
|
-
/**
|
|
23
|
-
* OpenAICompatProfile(能力差异)。
|
|
24
|
-
*/
|
|
25
|
-
profile: JsonValue | null;
|
|
26
|
-
/**
|
|
27
|
-
* ProviderOptions(headers/org/project/...;已脱敏)。
|
|
28
|
-
*/
|
|
29
|
-
provider_options: JsonValue | null;
|
|
30
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* A provider-defined tool (e.g. `anthropic.web_search_20250305`,
|
|
4
|
-
* `google.googleSearch`). Mirrors the V4 `LanguageModelV4ProviderTool`.
|
|
5
|
-
*
|
|
6
|
-
* Provider tools are specific to a certain provider. The input and output
|
|
7
|
-
* schemas are defined by the provider, and some are executed on the provider's
|
|
8
|
-
* servers (e.g. web search, code execution).
|
|
9
|
-
*/
|
|
10
|
-
export type ProviderTool = {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the tool, following the format `<provider-id>.<unique-tool-name>`.
|
|
13
|
-
*/
|
|
14
|
-
id: string;
|
|
15
|
-
/**
|
|
16
|
-
* The name of the tool, unique within this model call.
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
/**
|
|
20
|
-
* The arguments for configuring the tool. Must match the expected
|
|
21
|
-
* arguments defined by the provider for this tool.
|
|
22
|
-
*/
|
|
23
|
-
args: JsonValue;
|
|
24
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* Provider-facing tool call before Core parses and validates its input.
|
|
4
|
-
*
|
|
5
|
-
* The wire shape matches [`ToolCall`] field for field, except that `input`
|
|
6
|
-
* is the provider's raw argument *text* rather than a parsed value.
|
|
7
|
-
*/
|
|
8
|
-
export type RawToolCall = {
|
|
9
|
-
tool_call_id: string;
|
|
10
|
-
tool_name: string;
|
|
11
|
-
input: string;
|
|
12
|
-
provider_executed?: boolean | null;
|
|
13
|
-
dynamic?: boolean | null;
|
|
14
|
-
thought_signature?: string | null;
|
|
15
|
-
provider_metadata?: JsonValue | null;
|
|
16
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reasoning effort level (aligned with V4 `reasoning` option).
|
|
3
|
-
*
|
|
4
|
-
* Controls how much reasoning/thinking the model performs. Maps to
|
|
5
|
-
* OpenAI `reasoning_effort` and Anthropic `thinking` config.
|
|
6
|
-
*/
|
|
7
|
-
export type ReasoningEffort = "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ReasoningMode } from "./ReasoningMode";
|
|
2
|
-
import type { ReasoningVisibility } from "./ReasoningVisibility";
|
|
3
|
-
/**
|
|
4
|
-
* Reasoning / thinking portrait for a model (advisory).
|
|
5
|
-
*/
|
|
6
|
-
export type ReasoningSpec = {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the model family supports reasoning at all.
|
|
9
|
-
*/
|
|
10
|
-
supported: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Whether reasoning should be on by default.
|
|
13
|
-
*/
|
|
14
|
-
default_enabled: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Primary control mode.
|
|
17
|
-
*/
|
|
18
|
-
mode: ReasoningMode | null;
|
|
19
|
-
/**
|
|
20
|
-
* Default effort level (when `mode` is Effort/Mixed).
|
|
21
|
-
*/
|
|
22
|
-
effort_default?: string | null;
|
|
23
|
-
/**
|
|
24
|
-
* Supported effort levels.
|
|
25
|
-
*/
|
|
26
|
-
effort_options?: Array<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Minimum token budget (when `mode` is Budget/Mixed).
|
|
29
|
-
*/
|
|
30
|
-
budget_min?: number | null;
|
|
31
|
-
/**
|
|
32
|
-
* Interleaved reasoning (thinking blocks between tool calls).
|
|
33
|
-
*/
|
|
34
|
-
interleaved: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Output visibility.
|
|
37
|
-
*/
|
|
38
|
-
visibility: ReasoningVisibility | null;
|
|
39
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { HttpExchange } from "./HttpExchange";
|
|
2
|
-
import type { InputRecord } from "./InputRecord";
|
|
3
|
-
import type { OutcomeRecord } from "./OutcomeRecord";
|
|
4
|
-
import type { ProviderRecord } from "./ProviderRecord";
|
|
5
|
-
/**
|
|
6
|
-
* 一次完整调用的录制记录(三层 + call_id 关联)。
|
|
7
|
-
*/
|
|
8
|
-
export type Recording = {
|
|
9
|
-
/**
|
|
10
|
-
* 格式版本。
|
|
11
|
-
*/
|
|
12
|
-
schema: number;
|
|
13
|
-
/**
|
|
14
|
-
* 暴露逻辑调用 ID,关联三层。
|
|
15
|
-
*/
|
|
16
|
-
call_id: string;
|
|
17
|
-
/**
|
|
18
|
-
* ISO 8601 时间戳。
|
|
19
|
-
*/
|
|
20
|
-
recorded_at: string;
|
|
21
|
-
/**
|
|
22
|
-
* ① 输入侧:调用参数(prompt + options)。
|
|
23
|
-
*/
|
|
24
|
-
input: InputRecord;
|
|
25
|
-
/**
|
|
26
|
-
* ② 配置侧:provider 身份与配置。
|
|
27
|
-
*/
|
|
28
|
-
provider: ProviderRecord;
|
|
29
|
-
/**
|
|
30
|
-
* ③ HTTP 侧:实际 wire 交换(per-attempt 一条)。
|
|
31
|
-
*/
|
|
32
|
-
exchanges: Array<HttpExchange>;
|
|
33
|
-
/**
|
|
34
|
-
* 最终结果摘要(状态 + finish_reason + usage)。
|
|
35
|
-
*/
|
|
36
|
-
outcome: OutcomeRecord;
|
|
37
|
-
/**
|
|
38
|
-
* wire 是否完整(流式 body 未补全时为 false;由 writer 标记)。
|
|
39
|
-
*/
|
|
40
|
-
complete: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 传输层封闭信号:层 B 声明"不再有 exchange"(P1:层 A 收尾自动发;
|
|
43
|
-
* P2:由层 B 发送)。false = 仍可能来 exchange(记录暂不可定稿)。
|
|
44
|
-
*/
|
|
45
|
-
transport_closed: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* 会话归组(RFC-0024 P3):所在会话 id。None = 未归组(无 session_id 且
|
|
48
|
-
* 推断关闭)。由 `Recorder::record_session` 填充,写入 InputRecord 之前
|
|
49
|
-
* 或之后均可(writer 端按 call_id 合并)。
|
|
50
|
-
*/
|
|
51
|
-
session_id?: string | null;
|
|
52
|
-
/**
|
|
53
|
-
* 会话内步号(0 起,由 SessionStore 分配)。与 `session_id` 同生命周期。
|
|
54
|
-
*/
|
|
55
|
-
step?: number | null;
|
|
56
|
-
};
|
package/dist/types/Recording.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* Optional request information for telemetry and debugging.
|
|
4
|
-
*
|
|
5
|
-
* Aligned with the `request?` object that appears on some V4 model results.
|
|
6
|
-
*/
|
|
7
|
-
export type RequestInfo = {
|
|
8
|
-
/**
|
|
9
|
-
* The request body that was sent (opaque JSON).
|
|
10
|
-
*/
|
|
11
|
-
body: JsonValue | null;
|
|
12
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { RerankingDocuments } from "./RerankingDocuments";
|
|
2
|
-
import type { TimeoutConfiguration } from "./TimeoutConfiguration";
|
|
3
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
4
|
-
/**
|
|
5
|
-
* Options passed to [`RerankingModel::do_rerank`].
|
|
6
|
-
*
|
|
7
|
-
* Aligned with V4 `RerankingModelV4CallOptions`.
|
|
8
|
-
*/
|
|
9
|
-
export type RerankingCallOptions = {
|
|
10
|
-
/**
|
|
11
|
-
* Documents to rerank.
|
|
12
|
-
*/
|
|
13
|
-
documents: RerankingDocuments;
|
|
14
|
-
/**
|
|
15
|
-
* The query to rerank the documents against.
|
|
16
|
-
*/
|
|
17
|
-
query: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional limit: return only the top `n` documents.
|
|
20
|
-
*/
|
|
21
|
-
top_n: number | null;
|
|
22
|
-
/**
|
|
23
|
-
* Per-call retry override. `None` uses the model default.
|
|
24
|
-
*/
|
|
25
|
-
max_retries: number | null;
|
|
26
|
-
/**
|
|
27
|
-
* Per-call operation timeout.
|
|
28
|
-
*/
|
|
29
|
-
timeout: TimeoutConfiguration | null;
|
|
30
|
-
/**
|
|
31
|
-
* Additional provider-specific options, keyed by provider name.
|
|
32
|
-
*/
|
|
33
|
-
provider_options: {
|
|
34
|
-
[key in string]: JsonValue;
|
|
35
|
-
} | null;
|
|
36
|
-
/**
|
|
37
|
-
* Additional HTTP headers to send with the request.
|
|
38
|
-
*/
|
|
39
|
-
headers: {
|
|
40
|
-
[key in string]: string;
|
|
41
|
-
} | null;
|
|
42
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* Documents to rerank: either a list of texts or a list of JSON objects.
|
|
4
|
-
*
|
|
5
|
-
* Aligned with V4 `RerankingModelV4CallOptions.documents`.
|
|
6
|
-
*/
|
|
7
|
-
export type RerankingDocuments = {
|
|
8
|
-
"Text": {
|
|
9
|
-
values: Array<string>;
|
|
10
|
-
};
|
|
11
|
-
} | {
|
|
12
|
-
"Object": {
|
|
13
|
-
values: Array<JsonValue>;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A single reranked entry: the original index and its relevance score.
|
|
3
|
-
*/
|
|
4
|
-
export type RerankingRank = {
|
|
5
|
-
/**
|
|
6
|
-
* The index of the document in the original list (before reranking).
|
|
7
|
-
*/
|
|
8
|
-
index: number;
|
|
9
|
-
/**
|
|
10
|
-
* The relevance score of the document after reranking.
|
|
11
|
-
*/
|
|
12
|
-
relevance_score: number;
|
|
13
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* Optional response information for a reranking call.
|
|
4
|
-
*/
|
|
5
|
-
export type RerankingResponse = {
|
|
6
|
-
/**
|
|
7
|
-
* ID for the generated response, if the provider sends one.
|
|
8
|
-
*/
|
|
9
|
-
id: string | null;
|
|
10
|
-
/**
|
|
11
|
-
* Timestamp for the start of the generated response (ISO 8601 string).
|
|
12
|
-
*/
|
|
13
|
-
timestamp: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* The ID of the model that was used to generate the response.
|
|
16
|
-
*/
|
|
17
|
-
model_id: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* Response headers.
|
|
20
|
-
*/
|
|
21
|
-
headers: {
|
|
22
|
-
[key in string]: string;
|
|
23
|
-
} | null;
|
|
24
|
-
/**
|
|
25
|
-
* Response body (opaque JSON).
|
|
26
|
-
*/
|
|
27
|
-
body: JsonValue | null;
|
|
28
|
-
};
|