weave-typescript 0.12.0 → 0.14.0
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/dist/google/api/annotations.pb.js +1 -1
- package/dist/google/api/http.pb.js +1 -1
- package/dist/google/protobuf/descriptor.pb.d.ts +8 -1
- package/dist/google/protobuf/descriptor.pb.js +8 -1
- package/dist/google/protobuf/struct.pb.js +1 -1
- package/dist/google/protobuf/timestamp.pb.d.ts +7 -6
- package/dist/google/protobuf/timestamp.pb.js +1 -1
- package/dist/index.d.ts +9 -16
- package/dist/index.js +13 -21
- package/dist/weaveapi/{storage/v1/auth.pb.d.ts → atc/v1/event.pb.d.ts} +12 -6
- package/dist/weaveapi/atc/v1/event.pb.js +263 -0
- package/dist/weaveapi/{auth/v1/session.pb.d.ts → atc/v1/message.pb.d.ts} +22 -21
- package/dist/weaveapi/atc/v1/message.pb.js +287 -0
- package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
- package/dist/weaveapi/atc/v1/process.pb.js +658 -0
- package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
- package/dist/weaveapi/atc/v1/run.pb.js +525 -0
- package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
- package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
- package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
- package/dist/weaveapi/project/v1/project.pb.js +765 -66
- package/dist/weaveapi/project/v1/service.pb.d.ts +117 -76
- package/dist/weaveapi/project/v1/service.pb.js +1088 -401
- package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
- package/dist/weaveapi/task/v1/service.pb.js +1416 -0
- package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
- package/dist/weaveapi/task/v1/task.pb.js +782 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +101 -0
- package/dist/weavesql/atcdb/event_sql.js +191 -0
- package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
- package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
- package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
- package/dist/weavesql/weavedb/project_sql.js +304 -112
- package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
- package/dist/weavesql/weavedb/task_sql.js +328 -0
- package/package.json +1 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
- package/dist/weaveapi/auth/v1/service.pb.js +0 -4977
- package/dist/weaveapi/auth/v1/session.pb.js +0 -308
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
- package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
- package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
- package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
- package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
- package/dist/weaveapi/data/v1/data.pb.js +0 -411
- package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
- package/dist/weaveapi/data/v1/service.pb.js +0 -2777
- package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
- package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
- package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
- package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
- package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
- package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
- package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
- package/dist/weaveapi/input/v1/input.pb.js +0 -632
- package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/input/v1/service.pb.js +0 -3610
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
- package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
- package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
- package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
- package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
- package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
- package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
- package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
- package/dist/weaveapi/llmx/v1/service.pb.js +0 -5266
- package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
- package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
- package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
- package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
- package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
- package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
- package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
- package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
- package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
- package/dist/weaveapi/report/v1/report.pb.js +0 -678
- package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
- package/dist/weaveapi/report/v1/service.pb.js +0 -1923
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
- package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
- package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
- package/dist/weaveapi/run/v1/run.pb.js +0 -1155
- package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
- package/dist/weaveapi/run/v1/service.pb.js +0 -2426
- package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
- package/dist/weaveapi/script/v1/script.pb.js +0 -1025
- package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
- package/dist/weaveapi/script/v1/service.pb.js +0 -4871
- package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
- package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
- package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
- package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
- package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
- package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
- package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
- package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
- package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
- package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
- package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
- package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
- package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
- package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
- package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
- package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
- package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
- package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
- package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
- package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
- package/dist/weaveapi/synthesize/v1/service.pb.js +0 -917
- package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
- package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
- package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
- package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
- package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
- package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { Architecture, Licensing, Safety, TechnicalSpecs, Training } from "./architecture.pb";
|
|
3
|
-
import { Capability } from "./capabilities.pb";
|
|
4
|
-
import { Pricing } from "./pricing.pb";
|
|
5
|
-
export declare const protobufPackage = "weaveapi.llmx.v1";
|
|
6
|
-
/**
|
|
7
|
-
* Model represents a complete AI model with all its metadata, capabilities, and pricing.
|
|
8
|
-
* This is the primary entity for model discovery and comparison.
|
|
9
|
-
*/
|
|
10
|
-
export interface Model {
|
|
11
|
-
/**
|
|
12
|
-
* Unique internal identifier for this model record in our database.
|
|
13
|
-
* Example: "mdl_01234567-89ab-cdef-0123-456789abcdef"
|
|
14
|
-
* Generated by our system, not provider-specific
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
/**
|
|
18
|
-
* Provider's unique identifier in our system.
|
|
19
|
-
* Example: "pvd_openai_2024", "pvd_anthropic_2024"
|
|
20
|
-
* Links to Provider entity
|
|
21
|
-
*/
|
|
22
|
-
providerId: string;
|
|
23
|
-
/**
|
|
24
|
-
* URL-friendly provider identifier for routing.
|
|
25
|
-
* Examples: "openai", "anthropic", "google", "meta"
|
|
26
|
-
* Used in API paths like /models/openai/gpt-4
|
|
27
|
-
*/
|
|
28
|
-
providerSlug: string;
|
|
29
|
-
/**
|
|
30
|
-
* Human-readable provider name for display.
|
|
31
|
-
* Examples: "OpenAI", "Anthropic", "Google AI", "Meta AI"
|
|
32
|
-
*/
|
|
33
|
-
providerName: string;
|
|
34
|
-
/**
|
|
35
|
-
* Provider's specific model identifier as they define it.
|
|
36
|
-
* Examples: "gpt-4-turbo-2024-04-09", "claude-3-opus-20240229"
|
|
37
|
-
* This is what you use in their API calls
|
|
38
|
-
*/
|
|
39
|
-
modelId: string;
|
|
40
|
-
/**
|
|
41
|
-
* Combined provider/model identifier for unique referencing.
|
|
42
|
-
* Format: "{provider_slug}/{model_id}"
|
|
43
|
-
* Examples: "openai/gpt-4", "anthropic/claude-3-opus"
|
|
44
|
-
*/
|
|
45
|
-
slug: string;
|
|
46
|
-
/**
|
|
47
|
-
* Model's full technical name from the provider.
|
|
48
|
-
* Examples: "gpt-4-turbo-2024-04-09", "claude-3-opus-20240229"
|
|
49
|
-
* May include version dates or technical details
|
|
50
|
-
*/
|
|
51
|
-
name: string;
|
|
52
|
-
/**
|
|
53
|
-
* User-friendly display name for UI presentation.
|
|
54
|
-
* Examples: "GPT-4 Turbo", "Claude 3 Opus", "Gemini Pro"
|
|
55
|
-
* Simplified version of technical name
|
|
56
|
-
*/
|
|
57
|
-
displayName: string;
|
|
58
|
-
/**
|
|
59
|
-
* Human-readable description of the model's purpose and capabilities.
|
|
60
|
-
* Example: "Most capable GPT-4 model, optimized for complex tasks requiring
|
|
61
|
-
* advanced reasoning, coding, and creative writing. Supports vision, function
|
|
62
|
-
* calling, and JSON mode."
|
|
63
|
-
*/
|
|
64
|
-
description: string;
|
|
65
|
-
/**
|
|
66
|
-
* Model version string from provider.
|
|
67
|
-
* Examples: "2024-04-09", "v1.0", "preview-0125"
|
|
68
|
-
* May be date-based or semantic versioning
|
|
69
|
-
*/
|
|
70
|
-
version: string;
|
|
71
|
-
/**
|
|
72
|
-
* When the model was publicly released by the provider.
|
|
73
|
-
* Example: 2024-04-09 for GPT-4 Turbo April release
|
|
74
|
-
*/
|
|
75
|
-
releaseDate: Date | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Last date of data used in training (knowledge cutoff).
|
|
78
|
-
* Example: 2023-12-01 means model knows events up to this date
|
|
79
|
-
* Important for factual queries and current events
|
|
80
|
-
*/
|
|
81
|
-
trainingDataCutoff: Date | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* When the model will be/was deprecated (if scheduled).
|
|
84
|
-
* Example: 2025-01-15 for planned sunset
|
|
85
|
-
* Null if no deprecation planned
|
|
86
|
-
*/
|
|
87
|
-
deprecationDate: Date | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* List of specific capabilities this model supports.
|
|
90
|
-
* Examples: text_generation, function_calling, vision, code_interpreter
|
|
91
|
-
* See capabilities.proto for full enumeration
|
|
92
|
-
*/
|
|
93
|
-
capabilities: Capability[];
|
|
94
|
-
/**
|
|
95
|
-
* Model type, architecture, and licensing classification.
|
|
96
|
-
* Categorizes the model for filtering and comparison
|
|
97
|
-
*/
|
|
98
|
-
classification: ModelClassification | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Benchmark scores and performance metrics.
|
|
101
|
-
* Standardized scores for comparing model capabilities
|
|
102
|
-
*/
|
|
103
|
-
performance: ModelPerformance | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* Token limits, processing speed, and tokenizer information.
|
|
106
|
-
* Critical for understanding model constraints
|
|
107
|
-
*/
|
|
108
|
-
tokens: TokenInfo | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* Complete pricing structure for all operations.
|
|
111
|
-
* Includes standard, batch, cached, and tool pricing
|
|
112
|
-
*/
|
|
113
|
-
pricing: Pricing | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* Supported parameter ranges for generation.
|
|
116
|
-
* Temperature, top_p, and other sampling parameters
|
|
117
|
-
*/
|
|
118
|
-
configuration: Configuration | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* API endpoint information and rate limits.
|
|
121
|
-
* Everything needed to call the model programmatically
|
|
122
|
-
*/
|
|
123
|
-
apiDetails: APIDetails | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Available regions and platforms.
|
|
126
|
-
* Where and how the model can be accessed
|
|
127
|
-
*/
|
|
128
|
-
availability: Availability | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Technical architecture information.
|
|
131
|
-
* Transformer type, layer count, attention mechanism, etc.
|
|
132
|
-
*/
|
|
133
|
-
architecture: Architecture | undefined;
|
|
134
|
-
/**
|
|
135
|
-
* Training dataset and methodology information.
|
|
136
|
-
* How the model was trained and on what data
|
|
137
|
-
*/
|
|
138
|
-
training: Training | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* Built-in safety features and content filtering.
|
|
141
|
-
* Moderation capabilities and safety guardrails
|
|
142
|
-
*/
|
|
143
|
-
safety: Safety | undefined;
|
|
144
|
-
/**
|
|
145
|
-
* License type and usage restrictions.
|
|
146
|
-
* Legal terms for using the model
|
|
147
|
-
*/
|
|
148
|
-
licensing: Licensing | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* Hardware requirements and technical details.
|
|
151
|
-
* Memory, compute requirements for self-hosting
|
|
152
|
-
*/
|
|
153
|
-
technicalSpecs: TechnicalSpecs | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* When this model information was last updated in our system.
|
|
156
|
-
* Example: 2024-08-25T10:30:00Z
|
|
157
|
-
* For tracking data freshness
|
|
158
|
-
*/
|
|
159
|
-
lastScrapedAt: Date | undefined;
|
|
160
|
-
/**
|
|
161
|
-
* Sources where this model information was collected from.
|
|
162
|
-
* Examples: ["https://openai.com/pricing", "https://platform.openai.com/docs"]
|
|
163
|
-
* For data provenance and verification
|
|
164
|
-
*/
|
|
165
|
-
dataSources: string[];
|
|
166
|
-
/**
|
|
167
|
-
* Whether the model is currently available for use.
|
|
168
|
-
* false if model is down, in maintenance, or discontinued
|
|
169
|
-
*/
|
|
170
|
-
isActive: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Whether the model has been officially deprecated.
|
|
173
|
-
* true once deprecation_date has passed or provider announces EOL
|
|
174
|
-
*/
|
|
175
|
-
isDeprecated: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* If deprecated, the recommended replacement model's ID.
|
|
178
|
-
* Example: "mdl_gpt4_turbo_2024" replacing "mdl_gpt4_2023"
|
|
179
|
-
* Helps with migration paths
|
|
180
|
-
*/
|
|
181
|
-
replacementModelId: string;
|
|
182
|
-
}
|
|
183
|
-
/** ModelClassification categorizes models for filtering and comparison. */
|
|
184
|
-
export interface ModelClassification {
|
|
185
|
-
/**
|
|
186
|
-
* Primary model type defining its training approach.
|
|
187
|
-
* Examples: "foundation", "fine-tuned", "instruct", "chat", "reasoning"
|
|
188
|
-
* "foundation" = base model, "instruct" = instruction-following
|
|
189
|
-
*/
|
|
190
|
-
modelType: string;
|
|
191
|
-
/**
|
|
192
|
-
* Underlying model architecture family.
|
|
193
|
-
* Examples: "GPT", "LLaMA", "BERT", "T5", "Transformer", "Mamba"
|
|
194
|
-
*/
|
|
195
|
-
architecture: string;
|
|
196
|
-
/**
|
|
197
|
-
* Approximate number of parameters in billions.
|
|
198
|
-
* Examples: 7 (7B), 70 (70B), 175 (175B for GPT-3)
|
|
199
|
-
*/
|
|
200
|
-
parameterCount: number;
|
|
201
|
-
/**
|
|
202
|
-
* Whether model weights are publicly available.
|
|
203
|
-
* true for LLaMA, Mistral; false for GPT-4, Claude
|
|
204
|
-
*/
|
|
205
|
-
isOpenSource: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Software license if open source.
|
|
208
|
-
* Examples: "MIT", "Apache-2.0", "Custom", "Proprietary"
|
|
209
|
-
*/
|
|
210
|
-
licenseType: string;
|
|
211
|
-
}
|
|
212
|
-
/** ModelPerformance captures standardized benchmark scores. */
|
|
213
|
-
export interface ModelPerformance {
|
|
214
|
-
/**
|
|
215
|
-
* General reasoning ability score (0-10 scale).
|
|
216
|
-
* Based on benchmarks like ARC, HellaSwag, MMLU
|
|
217
|
-
* Example: 8.5 for strong reasoning models
|
|
218
|
-
*/
|
|
219
|
-
reasoningScore: number;
|
|
220
|
-
/**
|
|
221
|
-
* Programming and code generation score (0-10).
|
|
222
|
-
* Based on HumanEval, MBPP benchmarks
|
|
223
|
-
* Example: 9.2 for specialized coding models
|
|
224
|
-
*/
|
|
225
|
-
codingScore: number;
|
|
226
|
-
/**
|
|
227
|
-
* Creative writing and generation score (0-10).
|
|
228
|
-
* Based on human evaluations and creative benchmarks
|
|
229
|
-
* Example: 7.8 for models good at storytelling
|
|
230
|
-
*/
|
|
231
|
-
creativeScore: number;
|
|
232
|
-
/**
|
|
233
|
-
* Factual accuracy and knowledge score (0-10).
|
|
234
|
-
* Based on TruthfulQA, factual benchmarks
|
|
235
|
-
* Example: 8.0 for models with good factual recall
|
|
236
|
-
*/
|
|
237
|
-
factualScore: number;
|
|
238
|
-
/**
|
|
239
|
-
* Mathematical reasoning score (0-10).
|
|
240
|
-
* Based on GSM8K, MATH benchmarks
|
|
241
|
-
* Example: 9.5 for models excelling at math
|
|
242
|
-
*/
|
|
243
|
-
mathScore: number;
|
|
244
|
-
/**
|
|
245
|
-
* Raw benchmark scores by name.
|
|
246
|
-
* Keys: "mmlu", "humaneval", "gsm8k", "truthfulqa", "arc", "hellaswag"
|
|
247
|
-
* Values: Actual benchmark scores (usually 0-100)
|
|
248
|
-
* Example: {"mmlu": 86.4, "humaneval": 92.0, "gsm8k": 95.0}
|
|
249
|
-
*/
|
|
250
|
-
benchmarkScores: {
|
|
251
|
-
[key: string]: number;
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
export interface ModelPerformance_BenchmarkScoresEntry {
|
|
255
|
-
key: string;
|
|
256
|
-
value: number;
|
|
257
|
-
}
|
|
258
|
-
/** TokenInfo describes token limits and processing capabilities. */
|
|
259
|
-
export interface TokenInfo {
|
|
260
|
-
/**
|
|
261
|
-
* Maximum tokens the model can process in a single request.
|
|
262
|
-
* Examples: 4096, 8192, 32768, 128000, 200000
|
|
263
|
-
* Includes both input and output tokens
|
|
264
|
-
*/
|
|
265
|
-
contextWindow: number;
|
|
266
|
-
/**
|
|
267
|
-
* Maximum tokens that can be generated in response.
|
|
268
|
-
* Examples: 4096 for most models, 16384 for some
|
|
269
|
-
* May be less than context_window
|
|
270
|
-
*/
|
|
271
|
-
maxOutputTokens: number;
|
|
272
|
-
/**
|
|
273
|
-
* Tokenizer algorithm used.
|
|
274
|
-
* Examples: "cl100k_base" (GPT-4), "claude", "sentencepiece"
|
|
275
|
-
*/
|
|
276
|
-
tokenizer: string;
|
|
277
|
-
/**
|
|
278
|
-
* Average generation speed in tokens per second.
|
|
279
|
-
* Example: 50 for typical API, 100+ for optimized inference
|
|
280
|
-
* May vary based on load and tier
|
|
281
|
-
*/
|
|
282
|
-
tokensPerSecond: number;
|
|
283
|
-
}
|
|
284
|
-
/** Configuration defines supported generation parameters. */
|
|
285
|
-
export interface Configuration {
|
|
286
|
-
/**
|
|
287
|
-
* Minimum allowed temperature value.
|
|
288
|
-
* Usually 0.0 for deterministic output
|
|
289
|
-
*/
|
|
290
|
-
temperatureMin: number;
|
|
291
|
-
/**
|
|
292
|
-
* Maximum allowed temperature value.
|
|
293
|
-
* Usually 1.0 or 2.0 for high randomness
|
|
294
|
-
*/
|
|
295
|
-
temperatureMax: number;
|
|
296
|
-
/**
|
|
297
|
-
* Default temperature if not specified.
|
|
298
|
-
* Typically 0.7 or 1.0
|
|
299
|
-
*/
|
|
300
|
-
temperatureDefault: number;
|
|
301
|
-
/**
|
|
302
|
-
* Minimum allowed top_p (nucleus sampling).
|
|
303
|
-
* Usually 0.0 to disable
|
|
304
|
-
*/
|
|
305
|
-
topPMin: number;
|
|
306
|
-
/**
|
|
307
|
-
* Maximum allowed top_p value.
|
|
308
|
-
* Usually 1.0 for full vocabulary
|
|
309
|
-
*/
|
|
310
|
-
topPMax: number;
|
|
311
|
-
}
|
|
312
|
-
/** APIDetails provides integration information. */
|
|
313
|
-
export interface APIDetails {
|
|
314
|
-
/**
|
|
315
|
-
* Base API endpoint URL.
|
|
316
|
-
* Example: "https://api.openai.com/v1/chat/completions"
|
|
317
|
-
*/
|
|
318
|
-
endpoint: string;
|
|
319
|
-
/**
|
|
320
|
-
* API version identifier.
|
|
321
|
-
* Examples: "v1", "2024-02-01", "beta"
|
|
322
|
-
*/
|
|
323
|
-
version: string;
|
|
324
|
-
/**
|
|
325
|
-
* Rate limit in requests per minute.
|
|
326
|
-
* Example: 500 for standard tier, 10000 for enterprise
|
|
327
|
-
*/
|
|
328
|
-
rateLimitRpm: number;
|
|
329
|
-
/**
|
|
330
|
-
* Rate limit in tokens per minute.
|
|
331
|
-
* Example: 90000 for GPT-4, 200000 for GPT-3.5
|
|
332
|
-
*/
|
|
333
|
-
rateLimitTpm: number;
|
|
334
|
-
}
|
|
335
|
-
/** Availability describes where the model can be accessed. */
|
|
336
|
-
export interface Availability {
|
|
337
|
-
/**
|
|
338
|
-
* Geographic regions where available.
|
|
339
|
-
* Examples: ["us-east-1", "eu-west-1", "asia-pacific"]
|
|
340
|
-
* May use provider-specific region codes
|
|
341
|
-
*/
|
|
342
|
-
regions: string[];
|
|
343
|
-
/**
|
|
344
|
-
* Platforms/services offering the model.
|
|
345
|
-
* Examples: ["api", "playground", "azure", "vertex-ai", "bedrock"]
|
|
346
|
-
*/
|
|
347
|
-
platforms: string[];
|
|
348
|
-
}
|
|
349
|
-
export declare const Model: MessageFns<Model>;
|
|
350
|
-
export declare const ModelClassification: MessageFns<ModelClassification>;
|
|
351
|
-
export declare const ModelPerformance: MessageFns<ModelPerformance>;
|
|
352
|
-
export declare const ModelPerformance_BenchmarkScoresEntry: MessageFns<ModelPerformance_BenchmarkScoresEntry>;
|
|
353
|
-
export declare const TokenInfo: MessageFns<TokenInfo>;
|
|
354
|
-
export declare const Configuration: MessageFns<Configuration>;
|
|
355
|
-
export declare const APIDetails: MessageFns<APIDetails>;
|
|
356
|
-
export declare const Availability: MessageFns<Availability>;
|
|
357
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
358
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
359
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
360
|
-
} : Partial<T>;
|
|
361
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
362
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
363
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
364
|
-
} & {
|
|
365
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
366
|
-
};
|
|
367
|
-
export interface MessageFns<T> {
|
|
368
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
369
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
370
|
-
fromJSON(object: any): T;
|
|
371
|
-
toJSON(message: T): unknown;
|
|
372
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
373
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
374
|
-
}
|
|
375
|
-
export {};
|