@@ -23,7 +23,7 @@ export class OpenAIChatModel extends Model<OpenAIChatInput, OpenAIChatOutput> {
2323 * The input object for the OpenAI Chat API.
2424 */
2525@json
26- class OpenAIChatInput {
26+ export class OpenAIChatInput {
2727 /**
2828 * The name of the model to use for the chat.
2929 * Must be the exact string expected by the model provider.
@@ -238,7 +238,7 @@ export type ServiceTier = string;
238238 * The output object for the OpenAI Chat API.
239239 */
240240@json
241- class OpenAIChatOutput {
241+ export class OpenAIChatOutput {
242242 /**
243243 * A unique identifier for the chat completion.
244244 */
@@ -317,7 +317,7 @@ export class ResponseFormat {
317317 * Additionally, if you need an array you must ask for an object that wraps the array,
318318 * because the model will not reliably produce arrays directly (ie., there is no `json_array` option).
319319 */
320- static Json : ResponseFormat = { type : "json_object" } ;
320+ static Json : ResponseFormat = { type : "json_object" , jsonSchema : null } ;
321321
322322 /**
323323 * Enables Structured Outputs which guarantees the model will match your supplied JSON schema.
@@ -339,7 +339,7 @@ export class ResponseFormat {
339339 * @remarks
340340 * This is the default response format.
341341 */
342- static Text : ResponseFormat = { type : "text" } ;
342+ static Text : ResponseFormat = { type : "text" , jsonSchema : null } ;
343343}
344344
345345// @json
@@ -459,7 +459,7 @@ export class FunctionCall {
459459 * The usage statistics for the request.
460460 */
461461@json
462- class Usage {
462+ export class Usage {
463463 /**
464464 * The number of completion tokens used in the response.
465465 */
@@ -483,7 +483,7 @@ class Usage {
483483 * A completion choice object returned in the response.
484484 */
485485@json
486- class Choice {
486+ export class Choice {
487487 /**
488488 * The reason the model stopped generating tokens.
489489 *
@@ -516,7 +516,7 @@ class Choice {
516516 * Log probability information for a choice.
517517 */
518518@json
519- class Logprobs {
519+ export class Logprobs {
520520 /**
521521 * A list of message content tokens with log probability information.
522522 */
@@ -527,7 +527,7 @@ class Logprobs {
527527 * Log probability information for a message content token.
528528 */
529529@json
530- class LogprobsContent {
530+ export class LogprobsContent {
531531 /**
532532 * The token.
533533 */
@@ -560,7 +560,7 @@ class LogprobsContent {
560560 * Log probability information for the most likely tokens at a given position.
561561 */
562562@json
563- class TopLogprobsContent {
563+ export class TopLogprobsContent {
564564 /**
565565 * The token.
566566 */
@@ -713,7 +713,7 @@ export class ToolMessage extends Message {
713713 * A chat completion message generated by the model.
714714 */
715715@json
716- class CompletionMessage extends Message {
716+ export class CompletionMessage extends Message {
717717 /**
718718 * Creates a new completion message object.
719719 *
0 commit comments