Skip to content

Commit d4bdb5c

Browse files
authored
Gemini Streaming Fix Update (#3)
1 parent 50ac113 commit d4bdb5c

134 files changed

Lines changed: 674 additions & 801 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI Pipeline
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
type_check:
10+
name: Type Check and Lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
version: "0.9.27"
19+
enable-cache: true
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v6
23+
with:
24+
python-version-file: ".python-version"
25+
26+
- name: Install dependencies
27+
run: uv sync --dev --all-extras
28+
29+
- name: Ruff check
30+
run: |
31+
uv run ruff check || exit 1
32+
uv run ruff format --check || exit 1
33+
34+
- name: Pyright
35+
run: uv run pyright .
36+
37+
test:
38+
name: Test
39+
runs-on: ubuntu-latest
40+
needs: type_check
41+
environment: LLMGW_SETTINGS
42+
env:
43+
UIPATH_LLM_BACKEND: ${{ vars.UIPATH_LLM_BACKEND }}
44+
LLMGW_URL: ${{ vars.LLMGW_URL }}
45+
LLMGW_SEMANTIC_ORG_ID: ${{ secrets.LLMGW_SEMANTIC_ORG_ID }}
46+
LLMGW_SEMANTIC_USER_ID: ${{ secrets.LLMGW_SEMANTIC_USER_ID }}
47+
LLMGW_SEMANTIC_TENANT_ID: ${{ secrets.LLMGW_SEMANTIC_TENANT_ID }}
48+
LLMGW_REQUESTING_PRODUCT: ${{ vars.LLMGW_REQUESTING_PRODUCT }}
49+
LLMGW_REQUESTING_FEATURE: ${{ vars.LLMGW_REQUESTING_FEATURE }}
50+
LLMGW_CLIENT_ID: ${{ secrets.LLMGW_CLIENT_ID }}
51+
LLMGW_CLIENT_SECRET: ${{ secrets.LLMGW_CLIENT_SECRET }}
52+
steps:
53+
- uses: actions/checkout@v6
54+
with:
55+
lfs: true
56+
57+
- name: Install uv
58+
uses: astral-sh/setup-uv@v7
59+
with:
60+
version: "0.9.27"
61+
enable-cache: true
62+
63+
- name: Set up Python
64+
uses: actions/setup-python@v6
65+
with:
66+
python-version-file: ".python-version"
67+
68+
- name: Install dependencies
69+
run: uv sync --dev --all-extras
70+
71+
- name: Run tests
72+
run: uv run pytest tests

.github/workflows/ci_change_version.yml

Lines changed: 37 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,83 +6,70 @@ on:
66
- main
77

88
jobs:
9-
validate-version:
10-
name: Validate version updates
9+
validate-uipath-llm-client:
10+
name: uipath-llm-client
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Get changed files
18-
id: changes
1918
run: |
2019
git diff origin/main...HEAD --name-only > changes.txt
2120
echo "Changed files:"
2221
cat changes.txt
2322
24-
- name: Validate version updates for changed packages
23+
- name: Validate version update
2524
run: |
26-
VALIDATION_FAILED=0
27-
28-
# Core package: src/uipath_llm_client/ -> src/uipath_llm_client/__version__.py
2925
core_changes=$(grep -E '^src/uipath_llm_client/' changes.txt | grep -v '__version__.py' || true)
3026
core_version=$(grep -E '^src/uipath_llm_client/__version__.py' changes.txt || true)
3127
if [ -n "$core_changes" ] && [ -z "$core_version" ]; then
32-
echo "::error::Core package (src/uipath_llm_client/) changes detected but no version update in src/uipath_llm_client/__version__.py"
33-
VALIDATION_FAILED=1
34-
fi
35-
36-
# Langchain package: packages/uipath_langchain_client/ -> packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py
37-
langchain_changes=$(grep -E '^packages/uipath_langchain_client/' changes.txt | grep -v '__version__.py' || true)
38-
langchain_version=$(grep -E '^packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py' changes.txt || true)
39-
if [ -n "$langchain_changes" ] && [ -z "$langchain_version" ]; then
40-
echo "::error::Langchain package (packages/uipath_langchain_client/) changes detected but no version update in packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py"
41-
VALIDATION_FAILED=1
42-
fi
43-
44-
# LlamaIndex package: packages/uipath_llamaindex_client/ -> packages/uipath_llamaindex_client/src/uipath_llamaindex_client/__version__.py
45-
llamaindex_changes=$(grep -E '^packages/uipath_llamaindex_client/' changes.txt | grep -v '__version__.py' || true)
46-
llamaindex_version=$(grep -E '^packages/uipath_llamaindex_client/src/uipath_llamaindex_client/__version__.py' changes.txt || true)
47-
if [ -n "$llamaindex_changes" ] && [ -z "$llamaindex_version" ]; then
48-
echo "::error::LlamaIndex package (packages/uipath_llamaindex_client/) changes detected but no version update in packages/uipath_llamaindex_client/src/uipath_llamaindex_client/__version__.py"
49-
VALIDATION_FAILED=1
50-
fi
51-
52-
if [ $VALIDATION_FAILED -eq 1 ]; then
28+
echo "::error::uipath-llm-client: package changes detected but no version update in src/uipath_llm_client/__version__.py"
5329
exit 1
5430
fi
55-
echo "✓ All package versions are consistent with changes."
31+
echo "✓ Version is consistent with changes."
5632
57-
- name: Validate changelog updates for version changes
33+
- name: Validate changelog update
5834
run: |
59-
VALIDATION_FAILED=0
60-
61-
# Core package: src/uipath_llm_client/__version__.py -> CHANGELOG.md (root)
6235
core_version=$(grep -E '^src/uipath_llm_client/__version__.py' changes.txt || true)
6336
core_changelog=$(grep -E '^CHANGELOG.md' changes.txt || true)
6437
if [ -n "$core_version" ] && [ -z "$core_changelog" ]; then
65-
echo "::error::Core package version changed but no changelog update in CHANGELOG.md"
66-
VALIDATION_FAILED=1
38+
echo "::error::uipath-llm-client: version changed but no changelog update in CHANGELOG.md"
39+
exit 1
6740
fi
41+
echo "✓ Changelog is consistent with version changes."
6842
69-
# Langchain package: packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py -> packages/uipath_langchain_client/CHANGELOG.md
70-
langchain_version=$(grep -E '^packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py' changes.txt || true)
71-
langchain_changelog=$(grep -E '^packages/uipath_langchain_client/CHANGELOG.md' changes.txt || true)
72-
if [ -n "$langchain_version" ] && [ -z "$langchain_changelog" ]; then
73-
echo "::error::Langchain package version changed but no changelog update in packages/uipath_langchain_client/CHANGELOG.md"
74-
VALIDATION_FAILED=1
75-
fi
43+
validate-uipath-langchain-client:
44+
name: uipath-langchain-client
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v6
48+
with:
49+
fetch-depth: 0
50+
51+
- name: Get changed files
52+
run: |
53+
git diff origin/main...HEAD --name-only > changes.txt
54+
echo "Changed files:"
55+
cat changes.txt
7656
77-
# LlamaIndex package: packages/uipath_llamaindex_client/src/uipath_llamaindex_client/__version__.py -> packages/uipath_llamaindex_client/CHANGELOG.md
78-
llamaindex_version=$(grep -E '^packages/uipath_llamaindex_client/src/uipath_llamaindex_client/__version__.py' changes.txt || true)
79-
llamaindex_changelog=$(grep -E '^packages/uipath_llamaindex_client/CHANGELOG.md' changes.txt || true)
80-
if [ -n "$llamaindex_version" ] && [ -z "$llamaindex_changelog" ]; then
81-
echo "::error::LlamaIndex package version changed but no changelog update in packages/uipath_llamaindex_client/CHANGELOG.md"
82-
VALIDATION_FAILED=1
57+
- name: Validate version update
58+
run: |
59+
langchain_changes=$(grep -E '^packages/uipath_langchain_client/' changes.txt | grep -v '__version__.py' || true)
60+
langchain_version=$(grep -E '^packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py' changes.txt || true)
61+
if [ -n "$langchain_changes" ] && [ -z "$langchain_version" ]; then
62+
echo "::error::uipath-langchain-client: package changes detected but no version update in packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py"
63+
exit 1
8364
fi
65+
echo "✓ Version is consistent with changes."
8466
85-
if [ $VALIDATION_FAILED -eq 1 ]; then
67+
- name: Validate changelog update
68+
run: |
69+
langchain_version=$(grep -E '^packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py' changes.txt || true)
70+
langchain_changelog=$(grep -E '^packages/uipath_langchain_client/CHANGELOG.md' changes.txt || true)
71+
if [ -n "$langchain_version" ] && [ -z "$langchain_changelog" ]; then
72+
echo "::error::uipath-langchain-client: version changed but no changelog update in packages/uipath_langchain_client/CHANGELOG.md"
8673
exit 1
8774
fi
88-
echo "✓ All changelogs are consistent with version changes."
75+
echo "✓ Changelog is consistent with version changes."

.github/workflows/ci_run_tests.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/ci_type_check.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/uipath_langchain_client/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_langchain_client` will be documented in this file.
44

5+
## [1.0.2] - 2026-02-02
6+
7+
### Buf Fix
8+
- Removed old fix on Gemini streaming and updated with a new cleaner one
9+
510
## [1.0.1] - 2026-02-02
611

712
### Bug Fix

packages/uipath_langchain_client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [
88
"langchain>=1.2.7",
9-
"uipath-llm-client>=1.0.0",
9+
"uipath-llm-client>=1.0.2",
1010
]
1111

1212
[project.optional-dependencies]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LangChain Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services via LangChain."
3-
__version__ = "1.0.1"
3+
__version__ = "1.0.2"

0 commit comments

Comments
 (0)