diff --git a/src/models/create_answer_response.ml b/src/models/create_answer_response.ml index f0edbc2..5885755 100644 --- a/src/models/create_answer_response.ml +++ b/src/models/create_answer_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string option [@default None]; + _object: string option [@default None] [@key "object"]; model: string option [@default None]; search_model: string option [@default None]; completion: string option [@default None]; diff --git a/src/models/create_chat_completion_response.ml b/src/models/create_chat_completion_response.ml index c4bdb36..5b4d549 100644 --- a/src/models/create_chat_completion_response.ml +++ b/src/models/create_chat_completion_response.ml @@ -7,7 +7,7 @@ type t = { id: string; - _object: string; + _object: string [@key "object"]; created: int32; model: string; choices: Create_chat_completion_response_choices.t list; diff --git a/src/models/create_classification_response.ml b/src/models/create_classification_response.ml index b2e00ba..058535b 100644 --- a/src/models/create_classification_response.ml +++ b/src/models/create_classification_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string option [@default None]; + _object: string option [@default None] [@key "object"]; model: string option [@default None]; search_model: string option [@default None]; completion: string option [@default None]; diff --git a/src/models/create_completion_response.ml b/src/models/create_completion_response.ml index 036ee05..4dff423 100644 --- a/src/models/create_completion_response.ml +++ b/src/models/create_completion_response.ml @@ -7,7 +7,7 @@ type t = { id: string; - _object: string; + _object: string [@key "object"]; created: int32; model: string; choices: Create_completion_response_choices.t list; diff --git a/src/models/create_edit_response.ml b/src/models/create_edit_response.ml index 00ea2ec..0f62542 100644 --- a/src/models/create_edit_response.ml +++ b/src/models/create_edit_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; created: int32; choices: Create_completion_response_choices.t list; usage: Create_completion_response_usage.t; diff --git a/src/models/create_embedding_response.ml b/src/models/create_embedding_response.ml index ed9cc44..7a7a3a6 100644 --- a/src/models/create_embedding_response.ml +++ b/src/models/create_embedding_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; model: string; data: Create_embedding_response_data.t list; usage: Create_embedding_response_usage.t; diff --git a/src/models/create_embedding_response_data.ml b/src/models/create_embedding_response_data.ml index f64b163..9a7c3c7 100644 --- a/src/models/create_embedding_response_data.ml +++ b/src/models/create_embedding_response_data.ml @@ -7,7 +7,7 @@ type t = { index: int32; - _object: string; + _object: string [@key "object"]; embedding: float list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/create_search_response.ml b/src/models/create_search_response.ml index 6260c6b..94e206a 100644 --- a/src/models/create_search_response.ml +++ b/src/models/create_search_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string option [@default None]; + _object: string option [@default None] [@key "object"]; model: string option [@default None]; data: Create_search_response_data.t list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/create_search_response_data.ml b/src/models/create_search_response_data.ml index 7b33ea2..1998fd4 100644 --- a/src/models/create_search_response_data.ml +++ b/src/models/create_search_response_data.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string option [@default None]; + _object: string option [@default None] [@key "object"]; document: int32 option [@default None]; score: float option [@default None]; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/delete_file_response.ml b/src/models/delete_file_response.ml index 5863b35..382c8ba 100644 --- a/src/models/delete_file_response.ml +++ b/src/models/delete_file_response.ml @@ -7,7 +7,7 @@ type t = { id: string; - _object: string; + _object: string [@key "object"]; deleted: bool; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/delete_model_response.ml b/src/models/delete_model_response.ml index 5863b35..382c8ba 100644 --- a/src/models/delete_model_response.ml +++ b/src/models/delete_model_response.ml @@ -7,7 +7,7 @@ type t = { id: string; - _object: string; + _object: string [@key "object"]; deleted: bool; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/fine_tune.ml b/src/models/fine_tune.ml index 413460c..7c8edcf 100644 --- a/src/models/fine_tune.ml +++ b/src/models/fine_tune.ml @@ -7,7 +7,7 @@ type t = { id: string; - _object: string; + _object: string [@key "object"]; created_at: int32; updated_at: int32; model: string; @@ -21,7 +21,7 @@ type t = { events: Fine_tune_event.t list; } [@@deriving yojson { strict = false }, show ];; -let create (id : string) (_object : string) (created_at : int32) (updated_at : int32) (model : string) (fine_tuned_model : stringoption) (organization_id : string) (status : string) (hyperparams : Yojson.Safe.t) (training_files : Open_ai_file.t list) (validation_files : Open_ai_file.t list) (result_files : Open_ai_file.t list) : t = { +let create (id : string) (_object : string) (created_at : int32) (updated_at : int32) (model : string) (fine_tuned_model : string option) (organization_id : string) (status : string) (hyperparams : Yojson.Safe.t) (training_files : Open_ai_file.t list) (validation_files : Open_ai_file.t list) (result_files : Open_ai_file.t list) : t = { id = id; _object = _object; created_at = created_at; diff --git a/src/models/fine_tune_event.ml b/src/models/fine_tune_event.ml index a450858..63d4c0c 100644 --- a/src/models/fine_tune_event.ml +++ b/src/models/fine_tune_event.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; created_at: int32; level: string; message: string; diff --git a/src/models/list_engines_response.ml b/src/models/list_engines_response.ml index f58048e..7c9abee 100644 --- a/src/models/list_engines_response.ml +++ b/src/models/list_engines_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; data: Engine.t list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/list_files_response.ml b/src/models/list_files_response.ml index 7c89dee..5e49deb 100644 --- a/src/models/list_files_response.ml +++ b/src/models/list_files_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; data: Open_ai_file.t list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/list_fine_tune_events_response.ml b/src/models/list_fine_tune_events_response.ml index cc422fb..348fcf1 100644 --- a/src/models/list_fine_tune_events_response.ml +++ b/src/models/list_fine_tune_events_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; data: Fine_tune_event.t list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/list_fine_tunes_response.ml b/src/models/list_fine_tunes_response.ml index 235612f..a8cba38 100644 --- a/src/models/list_fine_tunes_response.ml +++ b/src/models/list_fine_tunes_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; data: Fine_tune.t list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/list_models_response.ml b/src/models/list_models_response.ml index c4c482b..651d09a 100644 --- a/src/models/list_models_response.ml +++ b/src/models/list_models_response.ml @@ -6,7 +6,7 @@ *) type t = { - _object: string; + _object: string [@key "object"]; data: Model.t list; } [@@deriving yojson { strict = false }, show ];; diff --git a/src/models/open_ai_file.ml b/src/models/open_ai_file.ml index 5248522..338df0a 100644 --- a/src/models/open_ai_file.ml +++ b/src/models/open_ai_file.ml @@ -7,7 +7,7 @@ type t = { id: string; - _object: string; + _object: string [@key "object"]; bytes: int32; created_at: int32; filename: string;