Skip to content

Commit

Permalink
feat: move llm to core
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj319 committed Oct 28, 2024
1 parent 50ea6c0 commit 37b2286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (

"github.com/playwright-community/playwright-go"
"github.com/vertexcover-io/locatr/core"
"github.com/vertexcover-io/locatr/llm"
)

func main() {
Expand Down Expand Up @@ -67,7 +66,7 @@ func main() {
}
time.Sleep(5 * time.Second) // wait for page to load

llmClient, err := llm.NewLlmClient(
llmClient, err := core.NewLlmClient(
os.Getenv("LLM_PROVIDER"), // (openai | anthropic),
os.Getenv("LLM_MODEL_NAME"),
os.Getenv("LLM_API_KEY"),
Expand Down
2 changes: 1 addition & 1 deletion llm/llm.go → core/llm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package llm
package core

import (
"context"
Expand Down
3 changes: 1 addition & 2 deletions examples/docker_hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

"github.com/playwright-community/playwright-go"
"github.com/vertexcover-io/locatr/core"
"github.com/vertexcover-io/locatr/llm"
)

func main() {
Expand Down Expand Up @@ -43,7 +42,7 @@ func main() {
}
time.Sleep(5 * time.Second) // wait for page to load

llmClient, err := llm.NewLlmClient(
llmClient, err := core.NewLlmClient(
os.Getenv("LLM_PROVIDER"), // (openai | anthropic),
os.Getenv("LLM_MODEL_NAME"),
os.Getenv("LLM_API_KEY"),
Expand Down

0 comments on commit 37b2286

Please sign in to comment.