Skip to content

Commit

Permalink
Mentions, lint, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Jan 22, 2024
1 parent 832886d commit 35101a9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions embeddings/vertexai_palm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tmc/langchaingo/llms/vertexai"
"github.com/tmc/langchaingo/llms/googleai/palm"
)

func newVertexEmbedder(t *testing.T, opts ...Option) *EmbedderImpl {
Expand All @@ -17,7 +17,7 @@ func newVertexEmbedder(t *testing.T, opts ...Option) *EmbedderImpl {
return nil
}

llm, err := vertexai.New()
llm, err := palm.New()
require.NoError(t, err)

embedder, err := NewEmbedder(llm, opts...)
Expand Down
2 changes: 1 addition & 1 deletion llms/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// 1. Hugging Face: llms/huggingface/
// 2. Local LLM: llms/local/
// 3. OpenAI: llms/openai/
// 4. Vertex AI: llms/vertexai/
// 4. Google AI: llms/googleai/
// 5. Cohere: llms/cohere/
//
// Each subpackage includes provider-specific LLM implementations and helper files for communication
Expand Down
3 changes: 3 additions & 0 deletions llms/googleai/palm/palm_llm.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// package palm implements a langchaingo provider for Google Vertex AI legacy
// PaLM models. Use the newer Gemini models via llms/googleai/vertex if
// possible.
package palm

import (
Expand Down
3 changes: 3 additions & 0 deletions llms/googleai/vertex/new.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// package vertex implements a langchaingo provider for Google Vertex AI LLMs,
// including the new Gemini models.
// See https://cloud.google.com/vertex-ai for more details.
package vertex

import (
Expand Down
3 changes: 2 additions & 1 deletion llms/googleai/vertex/vertex.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// DO NOT EDIT: this code is auto-generated from llms/googleai/googleai_llm.go
package vertex

// DO NOT EDIT: this code is auto-generated from llms/googleai/googleai_llm.go

import (
"context"
"errors"
Expand Down

0 comments on commit 35101a9

Please sign in to comment.