Skip to content

Commit 0466ed6

Browse files
Merge pull request #36 from renan-siqueira/develop
develop -> main
2 parents ebbaf37 + c28bbdd commit 0466ed6

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
___
55

6+
## [0.5.2] - 2025-04-03
7+
8+
### Fixed
9+
- Fixed issue where environment variable changes in `.env` were not reflected on subsequent executions of `rschat`.
10+
- Now uses `load_dotenv(override=True)` to ensure latest `.env` values are always respected
11+
- Updated sample templates (`.j2`) to also use `load_dotenv(override=True)`
12+
13+
### Changed
14+
- Bumped version to 0.5.2
15+
___
16+
617
## [0.5.1] - 2025-03-30
718

819
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rsazure-openai-toolkit"
7-
version = "0.5.1"
7+
version = "0.5.2"
88
description = "A fast, secure, and auditable toolkit to integrate with Azure OpenAI — with a friendly CLI and dev-first architecture."
99
authors = [{ name = "Renan Siqueira Antonio", email = "[email protected]" }]
1010
readme = { file = "README.md", content-type = "text/markdown" }

src/rsazure_openai_toolkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
A fast, secure, and auditable toolkit to integrate with Azure OpenAI — with a friendly CLI and dev-first architecture.
55
"""
66

7-
__version__ = "0.5.1"
7+
__version__ = "0.5.2"
88

99
from .handler import call_azure_openai_handler
1010
from .integration import generate_response, load_azure_client

src/rsazure_openai_toolkit/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
# Load environment variables from .env in project root
15-
load_dotenv()
15+
load_dotenv(override=True)
1616

1717
@click.command()
1818
@click.argument("question", nargs=-1)

src/rsazure_openai_toolkit/samples/templates/env_advanced_usage.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ from rsazure_openai_toolkit.utils.model_config_utils import get_model_config
66
from rsazure_openai_toolkit.logging.interaction_logger import InteractionLogger
77

88

9-
load_dotenv()
10-
119
def chat():
10+
load_dotenv(override=True)
11+
1212
print("🔁 Chat loop started")
1313
print("💡 Type 'exit' to quit\n")
1414

src/rsazure_openai_toolkit/samples/templates/env_usage.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from rsazure_openai_toolkit.utils.model_config_utils import get_model_config
66
from rsazure_openai_toolkit.logging.interaction_logger import InteractionLogger
77

88

9-
load_dotenv()
9+
load_dotenv(override=True)
1010

1111
messages = [
1212
{"role": "system", "content": "You are a helpful assistant."},

0 commit comments

Comments
 (0)