olca 0.2.20__tar.gz → 0.2.21__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {olca-0.2.20 → olca-0.2.21}/PKG-INFO +1 -1
- {olca-0.2.20 → olca-0.2.21}/olca/fusewill_utils.py +21 -13
- {olca-0.2.20 → olca-0.2.21}/olca.egg-info/PKG-INFO +1 -1
- {olca-0.2.20 → olca-0.2.21}/pyproject.toml +1 -1
- {olca-0.2.20 → olca-0.2.21}/setup.py +1 -1
- {olca-0.2.20 → olca-0.2.21}/LICENSE +0 -0
- {olca-0.2.20 → olca-0.2.21}/README.md +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca/__init__.py +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca/fusewill_cli.py +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca/olcacli.py +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca.egg-info/SOURCES.txt +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca.egg-info/dependency_links.txt +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca.egg-info/entry_points.txt +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca.egg-info/requires.txt +0 -0
- {olca-0.2.20 → olca-0.2.21}/olca.egg-info/top_level.txt +0 -0
- {olca-0.2.20 → olca-0.2.21}/setup.cfg +0 -0
@@ -1,26 +1,34 @@
|
|
1
|
-
from langfuse import Langfuse
|
2
1
|
import os
|
3
2
|
import sys
|
4
|
-
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
|
5
3
|
import json
|
6
|
-
|
7
4
|
import dotenv
|
8
5
|
|
9
|
-
#
|
6
|
+
# Load .env from the current working directory
|
7
|
+
dotenv.load_dotenv(dotenv_path=os.path.join(os.getcwd(), ".env"))
|
8
|
+
|
9
|
+
# Try loading from home directory if variables are still not set
|
10
10
|
if not os.environ.get("LANGFUSE_PUBLIC_KEY") or not os.environ.get("LANGFUSE_SECRET_KEY"):
|
11
|
-
|
12
|
-
dotenv.load_dotenv()
|
11
|
+
dotenv.load_dotenv(dotenv_path=os.path.expanduser("~/.env"))
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
# Final check before exiting
|
14
|
+
missing_vars = []
|
15
|
+
if not os.environ.get("LANGFUSE_PUBLIC_KEY"):
|
16
|
+
missing_vars.append("LANGFUSE_PUBLIC_KEY")
|
17
|
+
if not os.environ.get("LANGFUSE_SECRET_KEY"):
|
18
|
+
missing_vars.append("LANGFUSE_SECRET_KEY")
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
print("Error: LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY not found.")
|
20
|
+
if missing_vars:
|
21
|
+
print(f"Error: {', '.join(missing_vars)} not found.")
|
22
22
|
sys.exit(1)
|
23
23
|
|
24
|
+
from langfuse import Langfuse
|
25
|
+
import os
|
26
|
+
import sys
|
27
|
+
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
|
28
|
+
import json
|
29
|
+
|
30
|
+
import dotenv
|
31
|
+
|
24
32
|
langfuse = Langfuse()
|
25
33
|
|
26
34
|
def list_traces(limit=100, output_dir="../output/traces"):
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='olca',
|
5
|
-
version = "0.2.
|
5
|
+
version = "0.2.21",
|
6
6
|
author='Jean GUillaume ISabelle',
|
7
7
|
author_email='jgi@jgwill.com',
|
8
8
|
description='A Python package for experimenting with Langchain agent and interactivity in Terminal modalities.',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|