From d84763f2e86e21449321b3888e78ade4899ed49d Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Fri, 7 Jun 2024 08:26:43 +0800 Subject: [PATCH] feat: Add OpenAI facade (#667) Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com> --- src/Facade/OpenAI.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/Facade/OpenAI.php diff --git a/src/Facade/OpenAI.php b/src/Facade/OpenAI.php new file mode 100644 index 0000000..519e5d0 --- /dev/null +++ b/src/Facade/OpenAI.php @@ -0,0 +1,41 @@ +get(ClientContract::class); + + return $instance->{$name}(...$arguments); + } +}