Skip to content

Commit

Permalink
fix typo (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis authored Nov 2, 2024
1 parent bf96840 commit 4201d14
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions examples/embeddings/voyage/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/henomis/lingoose/index"
indexoption "github.com/henomis/lingoose/index/option"
"github.com/henomis/lingoose/index/vectordb/jsondb"
"github.com/henomis/lingoose/llm/antropic"
"github.com/henomis/lingoose/llm/anthropic"
"github.com/henomis/lingoose/loader"
"github.com/henomis/lingoose/textsplitter"
"github.com/henomis/lingoose/thread"
Expand Down Expand Up @@ -58,7 +58,7 @@ func main() {
documentContext += similarity.Content() + "\n\n"
}

antropicllm := antropic.New().WithModel("claude-3-opus-20240229")
anthropicllm := anthropic.New().WithModel("claude-3-opus-20240229")
t := thread.New()
t.AddMessage(thread.NewUserMessage().AddContent(
thread.NewTextContent("Based on the following context answer to the" +
Expand All @@ -70,7 +70,7 @@ func main() {
),
))

err = antropicllm.Generate(context.Background(), t)
err = anthropicllm.Generate(context.Background(), t)
if err != nil {
panic(err)
}
Expand Down
6 changes: 3 additions & 3 deletions examples/llm/antropic/multimodal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/llm/antropic"
"github.com/henomis/lingoose/llm/anthropic"
"github.com/henomis/lingoose/thread"
)

func main() {
antropicllm := antropic.New().WithModel("claude-3-opus-20240229")
anthropicllm := anthropic.New().WithModel("claude-3-opus-20240229")

t := thread.New().AddMessage(
thread.NewUserMessage().AddContent(
Expand All @@ -19,7 +19,7 @@ func main() {
),
)

err := antropicllm.Generate(context.Background(), t)
err := anthropicllm.Generate(context.Background(), t)
if err != nil {
panic(err)
}
Expand Down
8 changes: 4 additions & 4 deletions examples/llm/antropic/stream/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/llm/antropic"
"github.com/henomis/lingoose/llm/anthropic"
"github.com/henomis/lingoose/thread"
)

func main() {
antropicllm := antropic.New().WithModel("claude-3-opus-20240229").WithStream(
anthropicllm := anthropic.New().WithModel("claude-3-opus-20240229").WithStream(
func(response string) {
if response != antropic.EOS {
if response != anthropic.EOS {
fmt.Print(response)
} else {
fmt.Println()
Expand All @@ -25,7 +25,7 @@ func main() {
),
)

err := antropicllm.Generate(context.Background(), t)
err := anthropicllm.Generate(context.Background(), t)
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion llm/antropic/antropic.go → llm/anthropic/anthropic.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package antropic
package anthropic

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion llm/antropic/api.go → llm/anthropic/api.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package antropic
package anthropic

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion llm/antropic/formatter.go → llm/anthropic/formatter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package antropic
package anthropic

import (
"github.com/henomis/lingoose/thread"
Expand Down

0 comments on commit 4201d14

Please sign in to comment.