Skip to content

Commit 5e71a8b

Browse files
committed
fix typo
1 parent bf96840 commit 5e71a8b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

examples/embeddings/voyage/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/henomis/lingoose/index"
99
indexoption "github.com/henomis/lingoose/index/option"
1010
"github.com/henomis/lingoose/index/vectordb/jsondb"
11-
"github.com/henomis/lingoose/llm/antropic"
11+
"github.com/henomis/lingoose/llm/anthropic"
1212
"github.com/henomis/lingoose/loader"
1313
"github.com/henomis/lingoose/textsplitter"
1414
"github.com/henomis/lingoose/thread"
@@ -58,7 +58,7 @@ func main() {
5858
documentContext += similarity.Content() + "\n\n"
5959
}
6060

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

73-
err = antropicllm.Generate(context.Background(), t)
73+
err = anthropicllm.Generate(context.Background(), t)
7474
if err != nil {
7575
panic(err)
7676
}

examples/llm/antropic/multimodal/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/henomis/lingoose/llm/antropic"
7+
"github.com/henomis/lingoose/llm/anthropic"
88
"github.com/henomis/lingoose/thread"
99
)
1010

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

1414
t := thread.New().AddMessage(
1515
thread.NewUserMessage().AddContent(
@@ -19,7 +19,7 @@ func main() {
1919
),
2020
)
2121

22-
err := antropicllm.Generate(context.Background(), t)
22+
err := anthropicllm.Generate(context.Background(), t)
2323
if err != nil {
2424
panic(err)
2525
}

examples/llm/antropic/stream/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/henomis/lingoose/llm/antropic"
7+
"github.com/henomis/lingoose/llm/anthropic"
88
"github.com/henomis/lingoose/thread"
99
)
1010

1111
func main() {
12-
antropicllm := antropic.New().WithModel("claude-3-opus-20240229").WithStream(
12+
anthropicllm := anthropic.New().WithModel("claude-3-opus-20240229").WithStream(
1313
func(response string) {
14-
if response != antropic.EOS {
14+
if response != anthropic.EOS {
1515
fmt.Print(response)
1616
} else {
1717
fmt.Println()
@@ -25,7 +25,7 @@ func main() {
2525
),
2626
)
2727

28-
err := antropicllm.Generate(context.Background(), t)
28+
err := anthropicllm.Generate(context.Background(), t)
2929
if err != nil {
3030
panic(err)
3131
}

llm/antropic/antropic.go renamed to llm/anthropic/anthropic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package antropic
1+
package anthropic
22

33
import (
44
"context"

llm/antropic/api.go renamed to llm/anthropic/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package antropic
1+
package anthropic
22

33
import (
44
"bytes"

llm/antropic/formatter.go renamed to llm/anthropic/formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package antropic
1+
package anthropic
22

33
import (
44
"github.com/henomis/lingoose/thread"

0 commit comments

Comments
 (0)