From dbf67d189c985743d5aba1eb1977ebac968465d7 Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Wed, 15 May 2024 16:57:13 -0400 Subject: [PATCH] [Go] go.mod: change module path Change the module path to match the repo. --- go/ai/embedder.go | 2 +- go/ai/generator.go | 2 +- go/ai/retriever.go | 2 +- go/genkit/dotprompt/dotprompt.go | 2 +- go/genkit/dotprompt/genkit.go | 4 ++-- go/genkit/dotprompt/genkit_test.go | 4 ++-- go/genkit/dotprompt/render.go | 2 +- go/genkit/dotprompt/render_test.go | 2 +- go/go.mod | 2 +- go/internal/fakeembedder/fakeembedder.go | 2 +- go/internal/fakeembedder/fakeembedder_test.go | 2 +- go/plugins/googleai/googleai.go | 4 ++-- go/plugins/googleai/googleai_test.go | 4 ++-- go/plugins/googlecloud/googlecloud.go | 2 +- go/plugins/localvec/localvec.go | 4 ++-- go/plugins/localvec/localvec_test.go | 4 ++-- go/plugins/pinecone/genkit.go | 2 +- go/plugins/pinecone/genkit_test.go | 4 ++-- go/plugins/vertexai/embed.go | 2 +- go/plugins/vertexai/embed_test.go | 4 ++-- go/plugins/vertexai/vertexai.go | 4 ++-- go/plugins/vertexai/vertexai_test.go | 4 ++-- go/samples/coffee-shop/main.go | 8 ++++---- go/samples/flow-sample1/main.go | 2 +- 24 files changed, 37 insertions(+), 37 deletions(-) diff --git a/go/ai/embedder.go b/go/ai/embedder.go index 622b05581..665738cd5 100644 --- a/go/ai/embedder.go +++ b/go/ai/embedder.go @@ -17,7 +17,7 @@ package ai import ( "context" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/genkit" ) // Embedder is the interface used to convert a document to a diff --git a/go/ai/generator.go b/go/ai/generator.go index 78b3bdbf2..4d2867060 100644 --- a/go/ai/generator.go +++ b/go/ai/generator.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/genkit" ) // Generator is the interface used to query an AI model. diff --git a/go/ai/retriever.go b/go/ai/retriever.go index 9bb1fc029..19bb3def8 100644 --- a/go/ai/retriever.go +++ b/go/ai/retriever.go @@ -17,7 +17,7 @@ package ai import ( "context" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/genkit" ) // Retriever supports adding documents to a database, and diff --git a/go/genkit/dotprompt/dotprompt.go b/go/genkit/dotprompt/dotprompt.go index e718bb7a3..48bad4f3f 100644 --- a/go/genkit/dotprompt/dotprompt.go +++ b/go/genkit/dotprompt/dotprompt.go @@ -28,7 +28,7 @@ import ( "slices" "github.com/aymerick/raymond" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" "github.com/invopop/jsonschema" "gopkg.in/yaml.v3" ) diff --git a/go/genkit/dotprompt/genkit.go b/go/genkit/dotprompt/genkit.go index ecdb79b47..6b91b71cb 100644 --- a/go/genkit/dotprompt/genkit.go +++ b/go/genkit/dotprompt/genkit.go @@ -20,8 +20,8 @@ import ( "reflect" "strings" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/genkit" ) // ActionInput is the input type of a prompt action. diff --git a/go/genkit/dotprompt/genkit_test.go b/go/genkit/dotprompt/genkit_test.go index 4fd78a854..d6604edf8 100644 --- a/go/genkit/dotprompt/genkit_test.go +++ b/go/genkit/dotprompt/genkit_test.go @@ -19,8 +19,8 @@ import ( "fmt" "testing" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/genkit" ) type testGenerator struct{} diff --git a/go/genkit/dotprompt/render.go b/go/genkit/dotprompt/render.go index 4bca0450a..d7faff0bd 100644 --- a/go/genkit/dotprompt/render.go +++ b/go/genkit/dotprompt/render.go @@ -23,7 +23,7 @@ import ( "sync" "github.com/aymerick/raymond" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" ) // RenderText returns the Prompt as a string. diff --git a/go/genkit/dotprompt/render_test.go b/go/genkit/dotprompt/render_test.go index ad06f6884..27b98d8d9 100644 --- a/go/genkit/dotprompt/render_test.go +++ b/go/genkit/dotprompt/render_test.go @@ -18,7 +18,7 @@ import ( "fmt" "testing" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" "github.com/google/go-cmp/cmp" ) diff --git a/go/go.mod b/go/go.mod index 2dfd6981f..6ffc1a32a 100644 --- a/go/go.mod +++ b/go/go.mod @@ -1,4 +1,4 @@ -module github.com/google/genkit/go +module github.com/firebase/genkit/go go 1.22.0 diff --git a/go/internal/fakeembedder/fakeembedder.go b/go/internal/fakeembedder/fakeembedder.go index 233b93f39..9b5b7da01 100644 --- a/go/internal/fakeembedder/fakeembedder.go +++ b/go/internal/fakeembedder/fakeembedder.go @@ -23,7 +23,7 @@ import ( "context" "errors" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" ) // Embedder is a fake implementation of genkit.Embedder. diff --git a/go/internal/fakeembedder/fakeembedder_test.go b/go/internal/fakeembedder/fakeembedder_test.go index 0393cb493..ea50dfe9e 100644 --- a/go/internal/fakeembedder/fakeembedder_test.go +++ b/go/internal/fakeembedder/fakeembedder_test.go @@ -19,7 +19,7 @@ import ( "slices" "testing" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" ) func TestFakeEmbedder(t *testing.T) { diff --git a/go/plugins/googleai/googleai.go b/go/plugins/googleai/googleai.go index a5b7cf4aa..978ca6116 100644 --- a/go/plugins/googleai/googleai.go +++ b/go/plugins/googleai/googleai.go @@ -18,9 +18,9 @@ import ( "context" "fmt" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/genkit" "github.com/google/generative-ai-go/genai" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/genkit" "google.golang.org/api/iterator" "google.golang.org/api/option" ) diff --git a/go/plugins/googleai/googleai_test.go b/go/plugins/googleai/googleai_test.go index 279865b53..fc91df7cd 100644 --- a/go/plugins/googleai/googleai_test.go +++ b/go/plugins/googleai/googleai_test.go @@ -21,8 +21,8 @@ import ( "strings" "testing" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/plugins/googleai" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/plugins/googleai" ) // The tests here only work with an API key set to a valid value. diff --git a/go/plugins/googlecloud/googlecloud.go b/go/plugins/googlecloud/googlecloud.go index 1b2efbb78..3c5b38821 100644 --- a/go/plugins/googlecloud/googlecloud.go +++ b/go/plugins/googlecloud/googlecloud.go @@ -27,7 +27,7 @@ import ( "cloud.google.com/go/logging" mexporter "github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric" texporter "github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/genkit" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" diff --git a/go/plugins/localvec/localvec.go b/go/plugins/localvec/localvec.go index c95f24eb5..ad6faa814 100644 --- a/go/plugins/localvec/localvec.go +++ b/go/plugins/localvec/localvec.go @@ -30,8 +30,8 @@ import ( "path/filepath" "slices" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/genkit" ) // New returns a new local vector database. This will register a new diff --git a/go/plugins/localvec/localvec_test.go b/go/plugins/localvec/localvec_test.go index 47baa4da2..978e4b130 100644 --- a/go/plugins/localvec/localvec_test.go +++ b/go/plugins/localvec/localvec_test.go @@ -20,8 +20,8 @@ import ( "strings" "testing" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/internal/fakeembedder" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/internal/fakeembedder" ) func TestLocalVec(t *testing.T) { diff --git a/go/plugins/pinecone/genkit.go b/go/plugins/pinecone/genkit.go index 20b41a791..e05e8222f 100644 --- a/go/plugins/pinecone/genkit.go +++ b/go/plugins/pinecone/genkit.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" ) // defaultTextKey is the default metadata key we use to store the diff --git a/go/plugins/pinecone/genkit_test.go b/go/plugins/pinecone/genkit_test.go index 0ad9f4bd6..cb6d5421e 100644 --- a/go/plugins/pinecone/genkit_test.go +++ b/go/plugins/pinecone/genkit_test.go @@ -19,8 +19,8 @@ import ( "strings" "testing" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/internal/fakeembedder" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/internal/fakeembedder" ) func TestGenkit(t *testing.T) { diff --git a/go/plugins/vertexai/embed.go b/go/plugins/vertexai/embed.go index 497588bf3..baa15ca80 100644 --- a/go/plugins/vertexai/embed.go +++ b/go/plugins/vertexai/embed.go @@ -22,7 +22,7 @@ import ( aiplatform "cloud.google.com/go/aiplatform/apiv1" "cloud.google.com/go/aiplatform/apiv1/aiplatformpb" - "github.com/google/genkit/go/ai" + "github.com/firebase/genkit/go/ai" "google.golang.org/api/option" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/go/plugins/vertexai/embed_test.go b/go/plugins/vertexai/embed_test.go index 158344f81..00f20d929 100644 --- a/go/plugins/vertexai/embed_test.go +++ b/go/plugins/vertexai/embed_test.go @@ -18,8 +18,8 @@ import ( "context" "testing" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/plugins/vertexai" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/plugins/vertexai" ) func TestEmbedder(t *testing.T) { diff --git a/go/plugins/vertexai/vertexai.go b/go/plugins/vertexai/vertexai.go index c821b1bc4..f20110dfd 100644 --- a/go/plugins/vertexai/vertexai.go +++ b/go/plugins/vertexai/vertexai.go @@ -19,8 +19,8 @@ import ( "fmt" "cloud.google.com/go/vertexai/genai" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/genkit" ) func newClient(ctx context.Context, projectID, location string) (*genai.Client, error) { diff --git a/go/plugins/vertexai/vertexai_test.go b/go/plugins/vertexai/vertexai_test.go index a29a23a7a..0f07d9c6e 100644 --- a/go/plugins/vertexai/vertexai_test.go +++ b/go/plugins/vertexai/vertexai_test.go @@ -21,8 +21,8 @@ import ( "strings" "testing" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/plugins/vertexai" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/plugins/vertexai" ) // The tests here only work with a project set to a valid value. diff --git a/go/samples/coffee-shop/main.go b/go/samples/coffee-shop/main.go index 953eb8fe5..4cc25c9f5 100644 --- a/go/samples/coffee-shop/main.go +++ b/go/samples/coffee-shop/main.go @@ -28,10 +28,10 @@ import ( "log" "os" - "github.com/google/genkit/go/ai" - "github.com/google/genkit/go/genkit" - "github.com/google/genkit/go/genkit/dotprompt" - "github.com/google/genkit/go/plugins/googleai" + "github.com/firebase/genkit/go/ai" + "github.com/firebase/genkit/go/genkit" + "github.com/firebase/genkit/go/genkit/dotprompt" + "github.com/firebase/genkit/go/plugins/googleai" "github.com/invopop/jsonschema" ) diff --git a/go/samples/flow-sample1/main.go b/go/samples/flow-sample1/main.go index 790a7343b..4d00d3e40 100644 --- a/go/samples/flow-sample1/main.go +++ b/go/samples/flow-sample1/main.go @@ -27,7 +27,7 @@ import ( "fmt" "log" - "github.com/google/genkit/go/genkit" + "github.com/firebase/genkit/go/genkit" ) func main() {