File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 8
8
"github.com/henomis/lingoose/index"
9
9
indexoption "github.com/henomis/lingoose/index/option"
10
10
"github.com/henomis/lingoose/index/vectordb/jsondb"
11
- "github.com/henomis/lingoose/llm/antropic "
11
+ "github.com/henomis/lingoose/llm/anthropic "
12
12
"github.com/henomis/lingoose/loader"
13
13
"github.com/henomis/lingoose/textsplitter"
14
14
"github.com/henomis/lingoose/thread"
@@ -58,7 +58,7 @@ func main() {
58
58
documentContext += similarity .Content () + "\n \n "
59
59
}
60
60
61
- antropicllm := antropic .New ().WithModel ("claude-3-opus-20240229" )
61
+ anthropicllm := anthropic .New ().WithModel ("claude-3-opus-20240229" )
62
62
t := thread .New ()
63
63
t .AddMessage (thread .NewUserMessage ().AddContent (
64
64
thread .NewTextContent ("Based on the following context answer to the" +
@@ -70,7 +70,7 @@ func main() {
70
70
),
71
71
))
72
72
73
- err = antropicllm .Generate (context .Background (), t )
73
+ err = anthropicllm .Generate (context .Background (), t )
74
74
if err != nil {
75
75
panic (err )
76
76
}
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import (
4
4
"context"
5
5
"fmt"
6
6
7
- "github.com/henomis/lingoose/llm/antropic "
7
+ "github.com/henomis/lingoose/llm/anthropic "
8
8
"github.com/henomis/lingoose/thread"
9
9
)
10
10
11
11
func main () {
12
- antropicllm := antropic .New ().WithModel ("claude-3-opus-20240229" )
12
+ anthropicllm := anthropic .New ().WithModel ("claude-3-opus-20240229" )
13
13
14
14
t := thread .New ().AddMessage (
15
15
thread .NewUserMessage ().AddContent (
@@ -19,7 +19,7 @@ func main() {
19
19
),
20
20
)
21
21
22
- err := antropicllm .Generate (context .Background (), t )
22
+ err := anthropicllm .Generate (context .Background (), t )
23
23
if err != nil {
24
24
panic (err )
25
25
}
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import (
4
4
"context"
5
5
"fmt"
6
6
7
- "github.com/henomis/lingoose/llm/antropic "
7
+ "github.com/henomis/lingoose/llm/anthropic "
8
8
"github.com/henomis/lingoose/thread"
9
9
)
10
10
11
11
func main () {
12
- antropicllm := antropic .New ().WithModel ("claude-3-opus-20240229" ).WithStream (
12
+ anthropicllm := anthropic .New ().WithModel ("claude-3-opus-20240229" ).WithStream (
13
13
func (response string ) {
14
- if response != antropic .EOS {
14
+ if response != anthropic .EOS {
15
15
fmt .Print (response )
16
16
} else {
17
17
fmt .Println ()
@@ -25,7 +25,7 @@ func main() {
25
25
),
26
26
)
27
27
28
- err := antropicllm .Generate (context .Background (), t )
28
+ err := anthropicllm .Generate (context .Background (), t )
29
29
if err != nil {
30
30
panic (err )
31
31
}
Original file line number Diff line number Diff line change 1
- package antropic
1
+ package anthropic
2
2
3
3
import (
4
4
"context"
Original file line number Diff line number Diff line change 1
- package antropic
1
+ package anthropic
2
2
3
3
import (
4
4
"bytes"
Original file line number Diff line number Diff line change 1
- package antropic
1
+ package anthropic
2
2
3
3
import (
4
4
"github.com/henomis/lingoose/thread"
You can’t perform that action at this time.
0 commit comments