From 78f6e0a3404a2c5e1b35b9906911076838e63532 Mon Sep 17 00:00:00 2001 From: "Yuki Nagae yuki.nagae" Date: Tue, 3 Sep 2024 21:48:49 +0900 Subject: [PATCH] use openai/openai-go go openai client as primary --- plugins/{openai2 => openai}/convert.go | 2 +- plugins/{openai2 => openai}/convert_test.go | 2 +- plugins/{openai2 => openai}/gpt.go | 2 +- plugins/{openai2 => openai}/openai.go | 2 +- plugins/{openai2 => openai}/openai_live_test.go | 2 +- plugins/{openai2 => openai}/translate.go | 2 +- plugins/{openai2 => openai}/translate_test.go | 2 +- plugins/{openai2 => openai}/utils.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) rename plugins/{openai2 => openai}/convert.go (99%) rename plugins/{openai2 => openai}/convert_test.go (99%) rename plugins/{openai2 => openai}/gpt.go (96%) rename plugins/{openai2 => openai}/openai.go (99%) rename plugins/{openai2 => openai}/openai_live_test.go (99%) rename plugins/{openai2 => openai}/translate.go (99%) rename plugins/{openai2 => openai}/translate_test.go (99%) rename plugins/{openai2 => openai}/utils.go (97%) diff --git a/plugins/openai2/convert.go b/plugins/openai/convert.go similarity index 99% rename from plugins/openai2/convert.go rename to plugins/openai/convert.go index 6123973..39f3e90 100644 --- a/plugins/openai2/convert.go +++ b/plugins/openai/convert.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "fmt" diff --git a/plugins/openai2/convert_test.go b/plugins/openai/convert_test.go similarity index 99% rename from plugins/openai2/convert_test.go rename to plugins/openai/convert_test.go index 3718f4a..c5452bb 100644 --- a/plugins/openai2/convert_test.go +++ b/plugins/openai/convert_test.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "reflect" diff --git a/plugins/openai2/gpt.go b/plugins/openai/gpt.go similarity index 96% rename from plugins/openai2/gpt.go rename to plugins/openai/gpt.go index 26f3917..499ed09 100644 --- a/plugins/openai2/gpt.go +++ b/plugins/openai/gpt.go @@ -1,4 +1,4 @@ -package openai2 +package openai import "github.com/firebase/genkit/go/ai" diff --git a/plugins/openai2/openai.go b/plugins/openai/openai.go similarity index 99% rename from plugins/openai2/openai.go rename to plugins/openai/openai.go index f6f1af1..363032b 100644 --- a/plugins/openai2/openai.go +++ b/plugins/openai/openai.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "context" diff --git a/plugins/openai2/openai_live_test.go b/plugins/openai/openai_live_test.go similarity index 99% rename from plugins/openai2/openai_live_test.go rename to plugins/openai/openai_live_test.go index 2452448..66da3e6 100644 --- a/plugins/openai2/openai_live_test.go +++ b/plugins/openai/openai_live_test.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "context" diff --git a/plugins/openai2/translate.go b/plugins/openai/translate.go similarity index 99% rename from plugins/openai2/translate.go rename to plugins/openai/translate.go index ee6e186..ccd6240 100644 --- a/plugins/openai2/translate.go +++ b/plugins/openai/translate.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "github.com/firebase/genkit/go/ai" diff --git a/plugins/openai2/translate_test.go b/plugins/openai/translate_test.go similarity index 99% rename from plugins/openai2/translate_test.go rename to plugins/openai/translate_test.go index 8f1b254..8a4b21e 100644 --- a/plugins/openai2/translate_test.go +++ b/plugins/openai/translate_test.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "reflect" diff --git a/plugins/openai2/utils.go b/plugins/openai/utils.go similarity index 97% rename from plugins/openai2/utils.go rename to plugins/openai/utils.go index f26f057..602359e 100644 --- a/plugins/openai2/utils.go +++ b/plugins/openai/utils.go @@ -1,4 +1,4 @@ -package openai2 +package openai import ( "encoding/json"