From d3a88b677a051ec40d412319015e8d87c37f98a9 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Mon, 21 Oct 2024 11:21:09 +1100 Subject: [PATCH] fix: added specific ai-exchange version and check path is None to avoid error after starting goose (#174) --- packages/exchange/pyproject.toml | 2 +- packages/exchange/src/exchange/langfuse_wrapper.py | 2 +- pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 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/packages/exchange/src/exchange/langfuse_wrapper.py b/packages/exchange/src/exchange/langfuse_wrapper.py index c8cec23e..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.local") +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) diff --git a/pyproject.toml b/pyproject.toml index 265cca59..11f0a452 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",