Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Go] go.mod: change module path #179

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go/ai/embedder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go/ai/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go/ai/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go/genkit/dotprompt/dotprompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions go/genkit/dotprompt/genkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions go/genkit/dotprompt/genkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion go/genkit/dotprompt/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go/genkit/dotprompt/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion go/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/google/genkit/go
module github.com/firebase/genkit/go

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion go/internal/fakeembedder/fakeembedder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go/internal/fakeembedder/fakeembedder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"slices"
"testing"

"github.com/google/genkit/go/ai"
"github.com/firebase/genkit/go/ai"
)

func TestFakeEmbedder(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/googleai/googleai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/googleai/googleai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go/plugins/googlecloud/googlecloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/localvec/localvec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/localvec/localvec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion go/plugins/pinecone/genkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/pinecone/genkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion go/plugins/vertexai/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/vertexai/embed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/vertexai/vertexai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions go/plugins/vertexai/vertexai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions go/samples/coffee-shop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion go/samples/flow-sample1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"fmt"
"log"

"github.com/google/genkit/go/genkit"
"github.com/firebase/genkit/go/genkit"
)

func main() {
Expand Down
Loading