From 7beb2b4465080125fdac0234e102c8bdf3ff86ce Mon Sep 17 00:00:00 2001 From: shuizhuyu Date: Mon, 13 Nov 2023 11:58:06 +0800 Subject: [PATCH] modify createFineTune endpoint and change readme example. --- README.md | 1 + src/Url.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3420407..c577f8a 100644 --- a/README.md +++ b/README.md @@ -776,6 +776,7 @@ Manage fine-tuning jobs to tailor a model to your specific training data. ```php $result = $open_ai->createFineTune([ + "model" => "gpt-3.5-turbo-1106", "training_file" => "file-U3KoAAtGsjUKSPXwEUDdtw86", ]); ``` diff --git a/src/Url.php b/src/Url.php index 7716a37..992712c 100644 --- a/src/Url.php +++ b/src/Url.php @@ -113,7 +113,7 @@ public static function filesUrl(): string */ public static function fineTuneUrl(): string { - return self::OPEN_AI_URL . "/fine-tunes"; + return self::OPEN_AI_URL . "/fine_tuning/jobs"; } /**