olca 0.2.18__tar.gz → 0.2.19__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {olca-0.2.18 → olca-0.2.19}/PKG-INFO +1 -1
- {olca-0.2.18 → olca-0.2.19}/olca/fusewill_utils.py +5 -8
- {olca-0.2.18 → olca-0.2.19}/olca.egg-info/PKG-INFO +1 -1
- {olca-0.2.18 → olca-0.2.19}/pyproject.toml +1 -1
- {olca-0.2.18 → olca-0.2.19}/setup.py +1 -1
- {olca-0.2.18 → olca-0.2.19}/LICENSE +0 -0
- {olca-0.2.18 → olca-0.2.19}/README.md +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca/__init__.py +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca/fusewill_cli.py +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca/olcacli.py +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca.egg-info/SOURCES.txt +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca.egg-info/dependency_links.txt +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca.egg-info/entry_points.txt +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca.egg-info/requires.txt +0 -0
- {olca-0.2.18 → olca-0.2.19}/olca.egg-info/top_level.txt +0 -0
- {olca-0.2.18 → olca-0.2.19}/setup.cfg +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
from langfuse import Langfuse
|
3
2
|
import os
|
4
3
|
import sys
|
@@ -7,16 +6,14 @@ import json
|
|
7
6
|
|
8
7
|
import dotenv
|
9
8
|
dotenv.load_dotenv()
|
10
|
-
|
9
|
+
|
11
10
|
if not os.getenv("LANGFUSE_PUBLIC_KEY") or not os.getenv("LANGFUSE_SECRET_KEY"):
|
12
|
-
|
13
|
-
|
11
|
+
# Try loading from the home directory
|
12
|
+
dotenv.load_dotenv(dotenv_path=os.path.expanduser("~/.env"))
|
14
13
|
|
15
14
|
if not os.getenv("LANGFUSE_PUBLIC_KEY") or not os.getenv("LANGFUSE_SECRET_KEY"):
|
16
|
-
|
17
|
-
|
18
|
-
print("Error: LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY not found in .env")
|
19
|
-
sys.exit(1)
|
15
|
+
print("Error: LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY not found.")
|
16
|
+
sys.exit(1)
|
20
17
|
|
21
18
|
langfuse = Langfuse()
|
22
19
|
|
@@ -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.19",
|
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
|