From 37b2286d2a15bdf8eaea57adfef2e16a01c7551a Mon Sep 17 00:00:00 2001 From: Neeraj310 Date: Mon, 28 Oct 2024 08:42:20 +0545 Subject: [PATCH] feat: move llm to core --- README.md | 3 +-- {llm => core}/llm.go | 2 +- examples/docker_hub.go | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) rename {llm => core}/llm.go (99%) diff --git a/README.md b/README.md index 9ebf22e..2ef693b 100644 --- a/README.md +++ b/README.md @@ -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() { @@ -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"), diff --git a/llm/llm.go b/core/llm.go similarity index 99% rename from llm/llm.go rename to core/llm.go index c1bfc95..c22beb4 100644 --- a/llm/llm.go +++ b/core/llm.go @@ -1,4 +1,4 @@ -package llm +package core import ( "context" diff --git a/examples/docker_hub.go b/examples/docker_hub.go index d2f8837..23775de 100644 --- a/examples/docker_hub.go +++ b/examples/docker_hub.go @@ -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() { @@ -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"),