From 8c1cbc7b8c8a7d3f476b714931c0656ed8215516 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 21 Oct 2024 10:42:43 +1100 Subject: [PATCH 1/4] upgraded to a newer version. specifier the ai-exchange version in goose dependency --- packages/exchange/pyproject.toml | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/exchange/pyproject.toml b/packages/exchange/pyproject.toml index d842def2..269b9ec2 100644 --- a/packages/exchange/pyproject.toml +++ b/packages/exchange/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ai-exchange" -version = "0.9.7" +version = "0.9.8" description = "a uniform python SDK for message generation with LLMs" readme = "README.md" requires-python = ">=3.10" diff --git a/pyproject.toml b/pyproject.toml index 265cca59..05106627 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "goose-ai" description = "a programming agent that runs on your machine" -version = "0.9.7" +version = "0.9.8" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "ai-exchange", + "ai-exchange=0.9.8", "attrs>=23.2.0", "rich>=13.7.1", "ruamel-yaml>=0.18.6", From 15cc04d440b4e915a713636f57837acb28baeed4 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 21 Oct 2024 10:49:43 +1100 Subject: [PATCH 2/4] create LANGFUSE_ENV_FILE path only when PACKAGE_ROOT exists --- packages/exchange/src/exchange/langfuse_wrapper.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/exchange/src/exchange/langfuse_wrapper.py b/packages/exchange/src/exchange/langfuse_wrapper.py index c8cec23e..21f464c0 100644 --- a/packages/exchange/src/exchange/langfuse_wrapper.py +++ b/packages/exchange/src/exchange/langfuse_wrapper.py @@ -48,7 +48,7 @@ def auth_check() -> bool: CURRENT_DIR = Path(__file__).parent PACKAGE_ROOT = find_package_root(CURRENT_DIR) -LANGFUSE_ENV_FILE = os.path.join(PACKAGE_ROOT, ".env.langfuse.local") +LANGFUSE_ENV_FILE = os.path.join(PACKAGE_ROOT, ".env.langfuse.local1") if PACKAGE_ROOT else None HAS_LANGFUSE_CREDENTIALS = False load_dotenv(LANGFUSE_ENV_FILE, override=True) diff --git a/pyproject.toml b/pyproject.toml index 05106627..3c8a10e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ version = "0.9.8" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "ai-exchange=0.9.8", + "ai-exchange", "attrs>=23.2.0", "rich>=13.7.1", "ruamel-yaml>=0.18.6", From 2a055520d15472321bf693eebc9a6cac58b6e4f3 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 21 Oct 2024 10:56:50 +1100 Subject: [PATCH 3/4] specified the matching dependency of ai-exchange --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3c8a10e1..11f0a452 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ version = "0.9.8" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "ai-exchange", + "ai-exchange==0.9.8", "attrs>=23.2.0", "rich>=13.7.1", "ruamel-yaml>=0.18.6", From 171aa1058e13eb436eec1537a981af1c8c9fba32 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 21 Oct 2024 11:14:01 +1100 Subject: [PATCH 4/4] revert unintentional change --- packages/exchange/src/exchange/langfuse_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/exchange/src/exchange/langfuse_wrapper.py b/packages/exchange/src/exchange/langfuse_wrapper.py index 21f464c0..23650368 100644 --- a/packages/exchange/src/exchange/langfuse_wrapper.py +++ b/packages/exchange/src/exchange/langfuse_wrapper.py @@ -48,7 +48,7 @@ def auth_check() -> bool: CURRENT_DIR = Path(__file__).parent PACKAGE_ROOT = find_package_root(CURRENT_DIR) -LANGFUSE_ENV_FILE = os.path.join(PACKAGE_ROOT, ".env.langfuse.local1") if PACKAGE_ROOT else None +LANGFUSE_ENV_FILE = os.path.join(PACKAGE_ROOT, ".env.langfuse.local") if PACKAGE_ROOT else None HAS_LANGFUSE_CREDENTIALS = False load_dotenv(LANGFUSE_ENV_FILE, override=True)