@opencode-ai/ai 0.0.0-dev-17701 → 0.0.0-dev-17706

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.
@@ -186,6 +186,12 @@ export declare const coreFields: {
186
186
  }>>;
187
187
  }>]>>;
188
188
  store: Schema.optional<Schema.Boolean>;
189
+ metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
190
+ safety_identifier: Schema.optional<Schema.String>;
191
+ stream_options: Schema.optional<Schema.Struct<{
192
+ readonly include_obfuscation: Schema.optional<Schema.Boolean>;
193
+ }>>;
194
+ top_logprobs: Schema.optional<Schema.Int>;
189
195
  truncation: Schema.optional<Schema.Literals<readonly ["auto", "disabled"]>>;
190
196
  service_tier: Schema.optional<Schema.Literals<readonly ["auto", "default", "flex", "priority"]>>;
191
197
  prompt_cache_key: Schema.optional<Schema.String>;
@@ -202,6 +208,8 @@ export declare const coreFields: {
202
208
  parallel_tool_calls: Schema.optional<Schema.Boolean>;
203
209
  temperature: Schema.optional<Schema.Number>;
204
210
  top_p: Schema.optional<Schema.Number>;
211
+ presence_penalty: Schema.optional<Schema.Number>;
212
+ frequency_penalty: Schema.optional<Schema.Number>;
205
213
  };
206
214
  declare const OpenResponsesBody: Schema.Struct<{
207
215
  readonly stream: Schema.Literal<true>;
@@ -285,6 +293,12 @@ declare const OpenResponsesBody: Schema.Struct<{
285
293
  }>>;
286
294
  }>]>>;
287
295
  readonly store: Schema.optional<Schema.Boolean>;
296
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
297
+ readonly safety_identifier: Schema.optional<Schema.String>;
298
+ readonly stream_options: Schema.optional<Schema.Struct<{
299
+ readonly include_obfuscation: Schema.optional<Schema.Boolean>;
300
+ }>>;
301
+ readonly top_logprobs: Schema.optional<Schema.Int>;
288
302
  readonly truncation: Schema.optional<Schema.Literals<readonly ["auto", "disabled"]>>;
289
303
  readonly service_tier: Schema.optional<Schema.Literals<readonly ["auto", "default", "flex", "priority"]>>;
290
304
  readonly prompt_cache_key: Schema.optional<Schema.String>;
@@ -301,6 +315,8 @@ declare const OpenResponsesBody: Schema.Struct<{
301
315
  readonly parallel_tool_calls: Schema.optional<Schema.Boolean>;
302
316
  readonly temperature: Schema.optional<Schema.Number>;
303
317
  readonly top_p: Schema.optional<Schema.Number>;
318
+ readonly presence_penalty: Schema.optional<Schema.Number>;
319
+ readonly frequency_penalty: Schema.optional<Schema.Number>;
304
320
  }>;
305
321
  export type OpenResponsesBody = Schema.Schema.Type<typeof OpenResponsesBody>;
306
322
  export declare const StreamItem: Schema.StructWithRest<Schema.Struct<{
@@ -455,6 +471,14 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
455
471
  } | undefined;
456
472
  include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
457
473
  prompt_cache_key?: string | undefined;
474
+ top_logprobs?: number | undefined;
475
+ stream_options?: {
476
+ include_obfuscation: boolean;
477
+ } | undefined;
478
+ safety_identifier?: string | undefined;
479
+ metadata?: {
480
+ readonly [x: string]: string;
481
+ } | undefined;
458
482
  store?: boolean | undefined;
459
483
  instructions?: string | undefined;
460
484
  model: string & import("effect/Brand").Brand<"AI.ModelID">;
@@ -483,6 +507,8 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
483
507
  max_output_tokens: number | undefined;
484
508
  temperature: number | undefined;
485
509
  top_p: number | undefined;
510
+ presence_penalty: number | undefined;
511
+ frequency_penalty: number | undefined;
486
512
  }, AIError, never>;
487
513
  export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
488
514
  readonly input: readonly ({
@@ -546,6 +572,9 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
546
572
  })[];
547
573
  readonly model: string;
548
574
  readonly stream: true;
575
+ readonly metadata?: {
576
+ readonly [x: string]: string;
577
+ } | undefined;
549
578
  readonly instructions?: string | undefined;
550
579
  readonly reasoning?: {
551
580
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -579,7 +608,14 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
579
608
  readonly store?: boolean | undefined;
580
609
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
581
610
  readonly truncation?: "auto" | "disabled" | undefined;
611
+ readonly stream_options?: {
612
+ readonly include_obfuscation?: boolean | undefined;
613
+ } | undefined;
582
614
  readonly prompt_cache_key?: string | undefined;
615
+ readonly frequency_penalty?: number | undefined;
616
+ readonly presence_penalty?: number | undefined;
617
+ readonly safety_identifier?: string | undefined;
618
+ readonly top_logprobs?: number | undefined;
583
619
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
584
620
  readonly max_output_tokens?: number | undefined;
585
621
  readonly max_tool_calls?: number | undefined;
@@ -840,6 +876,9 @@ export declare const protocol: Protocol<{
840
876
  })[];
841
877
  readonly model: string;
842
878
  readonly stream: true;
879
+ readonly metadata?: {
880
+ readonly [x: string]: string;
881
+ } | undefined;
843
882
  readonly instructions?: string | undefined;
844
883
  readonly reasoning?: {
845
884
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -873,7 +912,14 @@ export declare const protocol: Protocol<{
873
912
  readonly store?: boolean | undefined;
874
913
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
875
914
  readonly truncation?: "auto" | "disabled" | undefined;
915
+ readonly stream_options?: {
916
+ readonly include_obfuscation?: boolean | undefined;
917
+ } | undefined;
876
918
  readonly prompt_cache_key?: string | undefined;
919
+ readonly frequency_penalty?: number | undefined;
920
+ readonly presence_penalty?: number | undefined;
921
+ readonly safety_identifier?: string | undefined;
922
+ readonly top_logprobs?: number | undefined;
877
923
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
878
924
  readonly max_output_tokens?: number | undefined;
879
925
  readonly max_tool_calls?: number | undefined;
@@ -995,6 +1041,9 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
995
1041
  })[];
996
1042
  readonly model: string;
997
1043
  readonly stream: true;
1044
+ readonly metadata?: {
1045
+ readonly [x: string]: string;
1046
+ } | undefined;
998
1047
  readonly instructions?: string | undefined;
999
1048
  readonly reasoning?: {
1000
1049
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -1028,7 +1077,14 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1028
1077
  readonly store?: boolean | undefined;
1029
1078
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1030
1079
  readonly truncation?: "auto" | "disabled" | undefined;
1080
+ readonly stream_options?: {
1081
+ readonly include_obfuscation?: boolean | undefined;
1082
+ } | undefined;
1031
1083
  readonly prompt_cache_key?: string | undefined;
1084
+ readonly frequency_penalty?: number | undefined;
1085
+ readonly presence_penalty?: number | undefined;
1086
+ readonly safety_identifier?: string | undefined;
1087
+ readonly top_logprobs?: number | undefined;
1032
1088
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
1033
1089
  readonly max_output_tokens?: number | undefined;
1034
1090
  readonly max_tool_calls?: number | undefined;
@@ -111,6 +111,12 @@ export const coreFields = {
111
111
  tools: optionalArray(Tool),
112
112
  tool_choice: Schema.optional(ToolChoice),
113
113
  store: Schema.optional(Schema.Boolean),
114
+ metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
115
+ safety_identifier: Schema.optional(Schema.String),
116
+ stream_options: Schema.optional(Schema.Struct({
117
+ include_obfuscation: Schema.optional(Schema.Boolean),
118
+ })),
119
+ top_logprobs: Schema.optional(Schema.Int.check(Schema.isBetween({ minimum: 0, maximum: 20 }))),
114
120
  truncation: Schema.optional(OpenResponsesOptions.TruncationSchema),
115
121
  service_tier: Schema.optional(OpenResponsesOptions.ServiceTierSchema),
116
122
  prompt_cache_key: Schema.optional(Schema.String),
@@ -127,6 +133,8 @@ export const coreFields = {
127
133
  parallel_tool_calls: Schema.optional(Schema.Boolean),
128
134
  temperature: Schema.optional(Schema.Number),
129
135
  top_p: Schema.optional(Schema.Number),
136
+ presence_penalty: Schema.optional(Schema.Number),
137
+ frequency_penalty: Schema.optional(Schema.Number),
130
138
  };
131
139
  const OpenResponsesBody = Schema.Struct({
132
140
  ...coreFields,
@@ -419,6 +427,12 @@ const lowerOptions = (request) => {
419
427
  return {
420
428
  ...(options.instructions ? { instructions: options.instructions } : {}),
421
429
  ...(options.store !== undefined ? { store: options.store } : {}),
430
+ ...(options.metadata ? { metadata: options.metadata } : {}),
431
+ ...(options.safetyIdentifier ? { safety_identifier: options.safetyIdentifier } : {}),
432
+ ...(options.streamOptions?.includeObfuscation !== undefined
433
+ ? { stream_options: { include_obfuscation: options.streamOptions.includeObfuscation } }
434
+ : {}),
435
+ ...(options.topLogprobs !== undefined ? { top_logprobs: options.topLogprobs } : {}),
422
436
  ...(request.promptCacheKey ? { prompt_cache_key: request.promptCacheKey } : {}),
423
437
  ...(options.include ? { include: options.include } : {}),
424
438
  ...(options.reasoningEffort || options.reasoningSummary
@@ -456,6 +470,8 @@ export const fromRequestWithExtension = Effect.fn("OpenResponses.fromRequestWith
456
470
  max_output_tokens: generation?.maxTokens,
457
471
  temperature: generation?.temperature,
458
472
  top_p: generation?.topP,
473
+ presence_penalty: generation?.presencePenalty,
474
+ frequency_penalty: generation?.frequencyPenalty,
459
475
  ...lowerOptions(request),
460
476
  };
461
477
  });
@@ -67,6 +67,9 @@ export declare const route: Route<{
67
67
  })[];
68
68
  readonly model: string;
69
69
  readonly stream: true;
70
+ readonly metadata?: {
71
+ readonly [x: string]: string;
72
+ } | undefined;
70
73
  readonly instructions?: string | undefined;
71
74
  readonly reasoning?: {
72
75
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -100,7 +103,14 @@ export declare const route: Route<{
100
103
  readonly store?: boolean | undefined;
101
104
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
102
105
  readonly truncation?: "auto" | "disabled" | undefined;
106
+ readonly stream_options?: {
107
+ readonly include_obfuscation?: boolean | undefined;
108
+ } | undefined;
103
109
  readonly prompt_cache_key?: string | undefined;
110
+ readonly frequency_penalty?: number | undefined;
111
+ readonly presence_penalty?: number | undefined;
112
+ readonly safety_identifier?: string | undefined;
113
+ readonly top_logprobs?: number | undefined;
104
114
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
105
115
  readonly max_output_tokens?: number | undefined;
106
116
  readonly max_tool_calls?: number | undefined;
@@ -106,6 +106,12 @@ declare const OpenAIResponsesBody: Schema.Struct<{
106
106
  readonly model: Schema.String;
107
107
  readonly instructions: Schema.optional<Schema.String>;
108
108
  readonly store: Schema.optional<Schema.Boolean>;
109
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
110
+ readonly safety_identifier: Schema.optional<Schema.String>;
111
+ readonly stream_options: Schema.optional<Schema.Struct<{
112
+ readonly include_obfuscation: Schema.optional<Schema.Boolean>;
113
+ }>>;
114
+ readonly top_logprobs: Schema.optional<Schema.Int>;
109
115
  readonly truncation: Schema.optional<Schema.Literals<readonly ["auto", "disabled"]>>;
110
116
  readonly service_tier: Schema.optional<Schema.Literals<readonly ["auto", "default", "flex", "priority"]>>;
111
117
  readonly prompt_cache_key: Schema.optional<Schema.String>;
@@ -122,6 +128,8 @@ declare const OpenAIResponsesBody: Schema.Struct<{
122
128
  readonly parallel_tool_calls: Schema.optional<Schema.Boolean>;
123
129
  readonly temperature: Schema.optional<Schema.Number>;
124
130
  readonly top_p: Schema.optional<Schema.Number>;
131
+ readonly presence_penalty: Schema.optional<Schema.Number>;
132
+ readonly frequency_penalty: Schema.optional<Schema.Number>;
125
133
  }>;
126
134
  export type OpenAIResponsesBody = Schema.Schema.Type<typeof OpenAIResponsesBody>;
127
135
  export declare const protocol: Protocol<{
@@ -193,6 +201,9 @@ export declare const protocol: Protocol<{
193
201
  })[];
194
202
  readonly model: string;
195
203
  readonly stream: true;
204
+ readonly metadata?: {
205
+ readonly [x: string]: string;
206
+ } | undefined;
196
207
  readonly instructions?: string | undefined;
197
208
  readonly reasoning?: {
198
209
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -238,7 +249,14 @@ export declare const protocol: Protocol<{
238
249
  readonly store?: boolean | undefined;
239
250
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
240
251
  readonly truncation?: "auto" | "disabled" | undefined;
252
+ readonly stream_options?: {
253
+ readonly include_obfuscation?: boolean | undefined;
254
+ } | undefined;
241
255
  readonly prompt_cache_key?: string | undefined;
256
+ readonly frequency_penalty?: number | undefined;
257
+ readonly presence_penalty?: number | undefined;
258
+ readonly safety_identifier?: string | undefined;
259
+ readonly top_logprobs?: number | undefined;
242
260
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
243
261
  readonly max_output_tokens?: number | undefined;
244
262
  readonly max_tool_calls?: number | undefined;
@@ -367,6 +385,9 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
367
385
  })[];
368
386
  readonly model: string;
369
387
  readonly stream: true;
388
+ readonly metadata?: {
389
+ readonly [x: string]: string;
390
+ } | undefined;
370
391
  readonly instructions?: string | undefined;
371
392
  readonly reasoning?: {
372
393
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -412,7 +433,14 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
412
433
  readonly store?: boolean | undefined;
413
434
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
414
435
  readonly truncation?: "auto" | "disabled" | undefined;
436
+ readonly stream_options?: {
437
+ readonly include_obfuscation?: boolean | undefined;
438
+ } | undefined;
415
439
  readonly prompt_cache_key?: string | undefined;
440
+ readonly frequency_penalty?: number | undefined;
441
+ readonly presence_penalty?: number | undefined;
442
+ readonly safety_identifier?: string | undefined;
443
+ readonly top_logprobs?: number | undefined;
416
444
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
417
445
  readonly max_output_tokens?: number | undefined;
418
446
  readonly max_tool_calls?: number | undefined;
@@ -487,6 +515,9 @@ export declare const transport: import("../route/transport/index.js").Transport<
487
515
  })[];
488
516
  readonly model: string;
489
517
  readonly stream: true;
518
+ readonly metadata?: {
519
+ readonly [x: string]: string;
520
+ } | undefined;
490
521
  readonly instructions?: string | undefined;
491
522
  readonly reasoning?: {
492
523
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -532,7 +563,14 @@ export declare const transport: import("../route/transport/index.js").Transport<
532
563
  readonly store?: boolean | undefined;
533
564
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
534
565
  readonly truncation?: "auto" | "disabled" | undefined;
566
+ readonly stream_options?: {
567
+ readonly include_obfuscation?: boolean | undefined;
568
+ } | undefined;
535
569
  readonly prompt_cache_key?: string | undefined;
570
+ readonly frequency_penalty?: number | undefined;
571
+ readonly presence_penalty?: number | undefined;
572
+ readonly safety_identifier?: string | undefined;
573
+ readonly top_logprobs?: number | undefined;
536
574
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
537
575
  readonly max_output_tokens?: number | undefined;
538
576
  readonly max_tool_calls?: number | undefined;
@@ -607,6 +645,9 @@ export declare const route: Route<{
607
645
  })[];
608
646
  readonly model: string;
609
647
  readonly stream: true;
648
+ readonly metadata?: {
649
+ readonly [x: string]: string;
650
+ } | undefined;
610
651
  readonly instructions?: string | undefined;
611
652
  readonly reasoning?: {
612
653
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -652,7 +693,14 @@ export declare const route: Route<{
652
693
  readonly store?: boolean | undefined;
653
694
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
654
695
  readonly truncation?: "auto" | "disabled" | undefined;
696
+ readonly stream_options?: {
697
+ readonly include_obfuscation?: boolean | undefined;
698
+ } | undefined;
655
699
  readonly prompt_cache_key?: string | undefined;
700
+ readonly frequency_penalty?: number | undefined;
701
+ readonly presence_penalty?: number | undefined;
702
+ readonly safety_identifier?: string | undefined;
703
+ readonly top_logprobs?: number | undefined;
656
704
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
657
705
  readonly max_output_tokens?: number | undefined;
658
706
  readonly max_tool_calls?: number | undefined;
@@ -21,9 +21,18 @@ export declare const AllowedTools: Schema.Struct<{
21
21
  readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "none", "required"]>>;
22
22
  }>;
23
23
  export type AllowedTools = typeof AllowedTools.Type;
24
+ export declare const StreamOptions: Schema.Struct<{
25
+ readonly includeObfuscation: Schema.optional<Schema.Boolean>;
26
+ }>;
24
27
  export declare const Options: Schema.Struct<{
25
28
  readonly instructions: Schema.optional<Schema.String>;
26
29
  readonly store: Schema.optional<Schema.Boolean>;
30
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
31
+ readonly safetyIdentifier: Schema.optional<Schema.String>;
32
+ readonly streamOptions: Schema.optional<Schema.Struct<{
33
+ readonly includeObfuscation: Schema.optional<Schema.Boolean>;
34
+ }>>;
35
+ readonly topLogprobs: Schema.optional<Schema.Int>;
27
36
  readonly reasoningEffort: Schema.optional<Schema.declare<ReasoningEffort, ReasoningEffort>>;
28
37
  readonly reasoningSummary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
29
38
  readonly include: Schema.optional<Schema.$Array<Schema.declare<ResponseIncludable, ResponseIncludable>>>;
@@ -23,9 +23,16 @@ export const AllowedTools = Schema.Struct({
23
23
  toolNames: Schema.Array(Schema.String),
24
24
  mode: Schema.optional(Schema.Literals(["auto", "none", "required"])),
25
25
  });
26
+ export const StreamOptions = Schema.Struct({
27
+ includeObfuscation: Schema.optional(Schema.Boolean),
28
+ });
26
29
  export const Options = Schema.Struct({
27
30
  instructions: Schema.optional(Schema.String),
28
31
  store: Schema.optional(Schema.Boolean),
32
+ metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
33
+ safetyIdentifier: Schema.optional(Schema.String),
34
+ streamOptions: Schema.optional(StreamOptions),
35
+ topLogprobs: Schema.optional(Schema.Int.check(Schema.isBetween({ minimum: 0, maximum: 20 }))),
29
36
  reasoningEffort: Schema.optional(ReasoningEffort),
30
37
  reasoningSummary: Schema.optional(Schema.Literals(["auto", "concise", "detailed"])),
31
38
  include: Schema.optional(Schema.Array(ResponseIncludableSchema)),
@@ -184,6 +184,9 @@ export declare const routes: (RouteDef<{
184
184
  })[];
185
185
  readonly model: string;
186
186
  readonly stream: true;
187
+ readonly metadata?: {
188
+ readonly [x: string]: string;
189
+ } | undefined;
187
190
  readonly instructions?: string | undefined;
188
191
  readonly reasoning?: {
189
192
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -229,7 +232,14 @@ export declare const routes: (RouteDef<{
229
232
  readonly store?: boolean | undefined;
230
233
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
231
234
  readonly truncation?: "auto" | "disabled" | undefined;
235
+ readonly stream_options?: {
236
+ readonly include_obfuscation?: boolean | undefined;
237
+ } | undefined;
232
238
  readonly prompt_cache_key?: string | undefined;
239
+ readonly frequency_penalty?: number | undefined;
240
+ readonly presence_penalty?: number | undefined;
241
+ readonly safety_identifier?: string | undefined;
242
+ readonly top_logprobs?: number | undefined;
233
243
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
234
244
  readonly max_output_tokens?: number | undefined;
235
245
  readonly max_tool_calls?: number | undefined;
@@ -187,6 +187,9 @@ export declare const routes: (RouteDef<{
187
187
  })[];
188
188
  readonly model: string;
189
189
  readonly stream: true;
190
+ readonly metadata?: {
191
+ readonly [x: string]: string;
192
+ } | undefined;
190
193
  readonly instructions?: string | undefined;
191
194
  readonly reasoning?: {
192
195
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -232,7 +235,14 @@ export declare const routes: (RouteDef<{
232
235
  readonly store?: boolean | undefined;
233
236
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
234
237
  readonly truncation?: "auto" | "disabled" | undefined;
238
+ readonly stream_options?: {
239
+ readonly include_obfuscation?: boolean | undefined;
240
+ } | undefined;
235
241
  readonly prompt_cache_key?: string | undefined;
242
+ readonly frequency_penalty?: number | undefined;
243
+ readonly presence_penalty?: number | undefined;
244
+ readonly safety_identifier?: string | undefined;
245
+ readonly top_logprobs?: number | undefined;
236
246
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
237
247
  readonly max_output_tokens?: number | undefined;
238
248
  readonly max_tool_calls?: number | undefined;
@@ -80,6 +80,9 @@ export declare const routes: import("../route/client.js").Route<{
80
80
  })[];
81
81
  readonly model: string;
82
82
  readonly stream: true;
83
+ readonly metadata?: {
84
+ readonly [x: string]: string;
85
+ } | undefined;
83
86
  readonly instructions?: string | undefined;
84
87
  readonly reasoning?: {
85
88
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -113,7 +116,14 @@ export declare const routes: import("../route/client.js").Route<{
113
116
  readonly store?: boolean | undefined;
114
117
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
115
118
  readonly truncation?: "auto" | "disabled" | undefined;
119
+ readonly stream_options?: {
120
+ readonly include_obfuscation?: boolean | undefined;
121
+ } | undefined;
116
122
  readonly prompt_cache_key?: string | undefined;
123
+ readonly frequency_penalty?: number | undefined;
124
+ readonly presence_penalty?: number | undefined;
125
+ readonly safety_identifier?: string | undefined;
126
+ readonly top_logprobs?: number | undefined;
117
127
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
118
128
  readonly max_output_tokens?: number | undefined;
119
129
  readonly max_tool_calls?: number | undefined;
@@ -78,6 +78,9 @@ export declare const routes: import("../route/client.js").Route<{
78
78
  })[];
79
79
  readonly model: string;
80
80
  readonly stream: true;
81
+ readonly metadata?: {
82
+ readonly [x: string]: string;
83
+ } | undefined;
81
84
  readonly instructions?: string | undefined;
82
85
  readonly reasoning?: {
83
86
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -111,7 +114,14 @@ export declare const routes: import("../route/client.js").Route<{
111
114
  readonly store?: boolean | undefined;
112
115
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
113
116
  readonly truncation?: "auto" | "disabled" | undefined;
117
+ readonly stream_options?: {
118
+ readonly include_obfuscation?: boolean | undefined;
119
+ } | undefined;
114
120
  readonly prompt_cache_key?: string | undefined;
121
+ readonly frequency_penalty?: number | undefined;
122
+ readonly presence_penalty?: number | undefined;
123
+ readonly safety_identifier?: string | undefined;
124
+ readonly top_logprobs?: number | undefined;
115
125
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
116
126
  readonly max_output_tokens?: number | undefined;
117
127
  readonly max_tool_calls?: number | undefined;
@@ -172,6 +172,9 @@ export declare const routes: (Route<{
172
172
  })[];
173
173
  readonly model: string;
174
174
  readonly stream: true;
175
+ readonly metadata?: {
176
+ readonly [x: string]: string;
177
+ } | undefined;
175
178
  readonly instructions?: string | undefined;
176
179
  readonly reasoning?: {
177
180
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -217,7 +220,14 @@ export declare const routes: (Route<{
217
220
  readonly store?: boolean | undefined;
218
221
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
219
222
  readonly truncation?: "auto" | "disabled" | undefined;
223
+ readonly stream_options?: {
224
+ readonly include_obfuscation?: boolean | undefined;
225
+ } | undefined;
220
226
  readonly prompt_cache_key?: string | undefined;
227
+ readonly frequency_penalty?: number | undefined;
228
+ readonly presence_penalty?: number | undefined;
229
+ readonly safety_identifier?: string | undefined;
230
+ readonly top_logprobs?: number | undefined;
221
231
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
222
232
  readonly max_output_tokens?: number | undefined;
223
233
  readonly max_tool_calls?: number | undefined;
@@ -180,6 +180,9 @@ export declare const routes: (Route<{
180
180
  })[];
181
181
  readonly model: string;
182
182
  readonly stream: true;
183
+ readonly metadata?: {
184
+ readonly [x: string]: string;
185
+ } | undefined;
183
186
  readonly instructions?: string | undefined;
184
187
  readonly reasoning?: {
185
188
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
@@ -225,7 +228,14 @@ export declare const routes: (Route<{
225
228
  readonly store?: boolean | undefined;
226
229
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
227
230
  readonly truncation?: "auto" | "disabled" | undefined;
231
+ readonly stream_options?: {
232
+ readonly include_obfuscation?: boolean | undefined;
233
+ } | undefined;
228
234
  readonly prompt_cache_key?: string | undefined;
235
+ readonly frequency_penalty?: number | undefined;
236
+ readonly presence_penalty?: number | undefined;
237
+ readonly safety_identifier?: string | undefined;
238
+ readonly top_logprobs?: number | undefined;
229
239
  readonly service_tier?: "default" | "auto" | "flex" | "priority" | undefined;
230
240
  readonly max_output_tokens?: number | undefined;
231
241
  readonly max_tool_calls?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-dev-17701",
3
+ "version": "0.0.0-dev-17706",
4
4
  "name": "@opencode-ai/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@clack/prompts": "1.0.0-alpha.1",
32
- "@effect/platform-node": "4.0.0-beta.107",
33
- "@opencode-ai/http-recorder": "0.0.0-dev-17701",
32
+ "@effect/platform-node": "4.0.0-rc.110",
33
+ "@opencode-ai/http-recorder": "0.0.0-dev-17706",
34
34
  "@tsconfig/bun": "1.0.9",
35
35
  "@types/bun": "1.3.13",
36
36
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -39,9 +39,9 @@
39
39
  "dependencies": {
40
40
  "@smithy/eventstream-codec": "4.2.14",
41
41
  "@smithy/util-utf8": "4.2.2",
42
- "@opencode-ai/schema": "0.0.0-dev-17701",
42
+ "@opencode-ai/schema": "0.0.0-dev-17706",
43
43
  "aws4fetch": "1.0.20",
44
- "effect": "4.0.0-beta.107",
44
+ "effect": "4.0.0-rc.110",
45
45
  "google-auth-library": "10.5.0"
46
46
  }
47
47
  }