Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
cd075fd
[fix] bump prerelease version in pyproject.toml
actions-user Oct 10, 2024
272794e
[fix] bump prerelease version in pyproject.toml
actions-user Oct 10, 2024
e8f8444
[fix] bump prerelease version in pyproject.toml
actions-user Oct 10, 2024
ec89d7d
Fix docker image (#138)
diogoazevedo15 Oct 10, 2024
111c54f
[fix] bump prerelease version in pyproject.toml
actions-user Oct 10, 2024
a555c40
Fix docker image (#139)
diogoazevedo15 Oct 10, 2024
2f0f482
[fix] bump prerelease version in pyproject.toml
actions-user Oct 10, 2024
f06f595
Add llmstudio docs (#136)
diogoazevedo15 Oct 15, 2024
57ea379
[fix] bump prerelease version in pyproject.toml
actions-user Oct 15, 2024
d95c337
docs: update ollama.mdx
eltociear Oct 17, 2024
70d007e
[feat] beadrock added to LLM Core
brunoalho99 Oct 25, 2024
077dfd7
[bugfix] datetime
brunoalho99 Oct 26, 2024
4507de4
[feat] tool_calling
brunoalho99 Oct 26, 2024
b651789
[feat] processing langchain tools
brunoalho99 Oct 27, 2024
2a1d6ab
Merge branch 'main' into feat/bedrock
brunoalho99 Nov 5, 2024
7e6043c
feat: add ci for modules
diogoncalves Nov 4, 2024
6cc7000
chore: bump versions
diogoncalves Nov 6, 2024
4bc5e1c
feat: adapt develop actions
diogoncalves Nov 6, 2024
285e868
fix: github actions
diogoncalves Nov 6, 2024
324c08d
fix: github actions dev
diogoncalves Nov 6, 2024
3ed9d80
[fix] bump prerelease version in pyproject.toml
actions-user Nov 6, 2024
9006b78
[feat] bedrock agent with langchain and langgraph
brunoalho99 Nov 6, 2024
3d65f0a
[chore] remove print
brunoalho99 Nov 6, 2024
fcfe33e
[feat] bedrock mapper
brunoalho99 Nov 8, 2024
48c5113
[chore] clean unused variable
brunoalho99 Nov 8, 2024
49a402d
[feat] bedrock arguments added
brunoalho99 Nov 8, 2024
20e7abe
[feat] bedrock anthropic
brunoalho99 Nov 11, 2024
fd0bb6a
[bugfix] import corrected
brunoalho99 Nov 11, 2024
7bfacd0
[feat] module added
brunoalho99 Nov 11, 2024
7ad9c7e
[bugfix] async methods corrected
brunoalho99 Nov 12, 2024
51790d7
Create chore.yml
MiNeves00 Nov 12, 2024
b324888
Merge branch 'main' into patch-1
MiNeves00 Nov 12, 2024
072981e
CHORE: Create chore.yml (#172)
MiNeves00 Nov 12, 2024
02d2c6f
[feat] async methods corrected
brunoalho99 Nov 14, 2024
aa5f25a
[fastapi] version bump
brunoalho99 Nov 14, 2024
b7c42bb
[bugfix] new release
brunoalho99 Nov 14, 2024
2e537b6
[feat] code refactor
brunoalho99 Nov 14, 2024
1e73f1d
[feat] function calling
brunoalho99 Nov 16, 2024
6e809dd
[chore] remove async duplicated code from openai
brunoalho99 Nov 17, 2024
2a027b0
[chore] remove duplicated code from azure
brunoalho99 Nov 17, 2024
add329f
docs: update ollama.mdx (#159)
MiNeves00 Nov 18, 2024
fdf84e4
[chore] removed unnecessary code
brunoalho99 Nov 18, 2024
bf1b277
[bugfix] processing more than one tool
brunoalho99 Nov 18, 2024
d5c985d
[feat] test added to langchain integration
brunoalho99 Nov 18, 2024
4b037c7
Merge branch 'develop' into feat/bedrock
brunoalho99 Nov 18, 2024
eda7b4e
Merge branch 'feat/bedrock' into feature/vertexai-refactor
brunoalho99 Nov 18, 2024
2448e27
feat: update ci for libs
diogoncalves Nov 18, 2024
5bb4ad0
feat: update dev workflow
diogoncalves Nov 18, 2024
103383f
[bugfix] get cost using langchain wrapper
brunoalho99 Nov 19, 2024
b1d3a3e
[bugfix] azure init with kwargs
brunoalho99 Nov 19, 2024
9a0d831
Merge branch 'feat/bedrock' into feature/vertexai-refactor
brunoalho99 Nov 19, 2024
6f8f132
fix: workflow
diogoncalves Nov 19, 2024
1216453
chore: bump versions
diogoncalves Nov 19, 2024
27f113a
chore: fix typo
diogoncalves Nov 19, 2024
ddde4c4
chore: name workflow
diogoncalves Nov 19, 2024
42217fd
Merge branch 'main' into develop
diogoncalves Nov 19, 2024
94a19ae
[chore] solve pr comments
brunoalho99 Nov 19, 2024
b689ceb
[chore] normalize return
brunoalho99 Nov 19, 2024
e577f8b
Providers Refactor (#175)
brunoalho99 Nov 19, 2024
a3df3fb
Merge branch 'feat/bedrock' into develop
diogoncalves Nov 19, 2024
1494bd7
Merge branch 'feat/bedrock' into develop
diogoncalves Nov 19, 2024
c700a00
Merge branch 'main' into develop
diogoncalves Nov 19, 2024
9d3c754
fix: workflow
diogoncalves Nov 19, 2024
d4a4ed1
fix: workflow
diogoncalves Nov 19, 2024
7f19ec5
fix: dev workflow
diogoncalves Nov 20, 2024
13d1ed9
fix: workflow dev
diogoncalves Nov 20, 2024
94cfc4b
fix: workflow dev
diogoncalves Nov 20, 2024
5bb0f6b
fix: dev workflow
diogoncalves Nov 20, 2024
19ce260
[fix] bump prerelease version in pyproject.toml
actions-user Nov 20, 2024
c27bb93
fix: dev workflow
diogoncalves Nov 20, 2024
36ab3b0
[chore] updated python dotenv
brunoalho99 Nov 20, 2024
c257e04
[chore] update dotenv in proxy
brunoalho99 Nov 20, 2024
93da5bc
[fix] bump prerelease version in pyproject.toml
actions-user Nov 21, 2024
3c6be06
feat: main workflow to bump automatically alpha versions
diogoncalves Nov 21, 2024
21074f1
chore: bump versions
diogoncalves Nov 21, 2024
991caed
chore: update lock files
diogoncalves Nov 21, 2024
505a0fc
Merge branch 'main' into develop
diogoncalves Nov 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/upload-pypi-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,33 @@ jobs:
- name: Build and publish to PyPI
working-directory: ./libs/core
run: |
CURRENT_VERSION=$(poetry version --short)
FINAL_VERSION=$(echo "$CURRENT_VERSION" | sed -E 's/[a-zA-Z]+[0-9]*//')

echo "Checking for llmstudio-core==$FINAL_VERSION on PyPI..."
if python -m pip install llmstudio-core==$FINAL_VERSION --dry-run >/dev/null 2>&1; then
echo "Package llmstudio-core==$FINAL_VERSION is already available on PyPI. Please bump version."
exit 1
fi
done

poetry version "$FINAL_VERSION"
echo "Updated version: $(poetry version --short)"

poetry build
poetry publish

- name: Commit and push updated pyproject.toml
working-directory: ./libs/core
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add pyproject.toml
git commit -m "[fix] bump release version in pyproject.toml"
git push

# Extract the new version number from pyproject.toml
- name: Extract version for tagging Docker image
- name: Extract version.
working-directory: ./libs/core
run: |
echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV
Expand Down
83 changes: 21 additions & 62 deletions .github/workflows/upload-pypi-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
type: choice
description: "Choose the library to deploy (note: it points to develop branch only)"
options:
- llmstudio
- llmstudio-core
- llmstudio-proxy
- llmstudio-tracker
- ./libs/llmstudio
- ./libs/core
- ./libs/proxy
- ./libs/tracker
target_version:
description: "Target version (e.g., 1.1.0)"
required: true
Expand All @@ -20,14 +20,6 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
MODULE_PATH: |
${{
inputs.library == 'llmstudio' && './libs/llmstudio' ||
inputs.library == 'llmstudio-core' && './libs/core' ||
inputs.library == 'llmstudio-proxy' && './libs/proxy' ||
inputs.library == 'llmstudio-tracker' && './libs/tracker'
}}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -47,49 +39,38 @@ jobs:
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}

- name: Check PyPI for Target Version
working-directory: ${{ env.MODULE_PATH }}
working-directory: ${{ inputs.library }}
id: check-version
run: |
TARGET_VERSION="${{ github.event.inputs.target_version }}"
PACKAGE_NAME=${{ inputs.library }}
PACKAGE_NAME=$(poetry version | awk '{print $1}')
RESPONSE=$(curl -s "https://pypi.org/pypi/$PACKAGE_NAME/json" || echo "{}")
echo "$RESPONSE" | jq -r '.releases | keys[]' > all_versions.txt
if grep -qx "$TARGET_VERSION" all_versions.txt; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
fi

# Step 4: Decide on the next alpha version
- name: Determine Next Alpha Version
id: determine-version
run: |
if [[ "${{ env.exists }}" == "true" ]]; then
if grep -qx "$TARGET_VERSION" all_versions.txt; then
echo "Error: Version ${{ github.event.inputs.target_version }} already exists on PyPI."
exit 1
fi
BASE_VERSION="${{ github.event.inputs.target_version }}"
PACKAGE_NAME=${{ inputs.library }}
ALPHA_VERSIONS=$(grep -E "^$BASE_VERSIONa[0-9]+$" all_versions.txt | sort -V || true)
if [[ -z "$ALPHA_VERSIONS" ]]; then
NEW_VERSION="${BASE_VERSION}a0"

NEXT_ALPHA=$(grep "^${TARGET_VERSION}a[0-9]*$" all_versions.txt | sort -V | tail -n 1 | awk -F'a' '{print $2}')

if [[ -z "$NEXT_ALPHA" ]]; then
NEW_VERSION="${TARGET_VERSION}a0"
else
LATEST_ALPHA=$(echo "$ALPHA_VERSIONS" | tail -n 1)
NEXT_ALPHA_NUM=$(( $(echo "$LATEST_ALPHA" | grep -oE '[0-9]+$') + 1 ))
NEW_VERSION="${BASE_VERSION}a${NEXT_ALPHA_NUM}"
NEW_VERSION="${TARGET_VERSION}a$((NEXT_ALPHA + 1))"
fi
echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
echo "Determined new version: $NEW_VERSION"

- name: Build and publish to PyPI as development release
working-directory: ${{ env.MODULE_PATH }}
working-directory: ${{ inputs.library }}
run: |
poetry version ${{ env.new_version }}
poetry build
poetry publish

- name: Commit and push updated pyproject.toml
working-directory: ${{ env.MODULE_PATH }}
working-directory: ${{ inputs.library }}
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
Expand All @@ -98,43 +79,21 @@ jobs:
git push

- name: Wait for PyPI to update
working-directory: ${{ env.MODULE_PATH }}
working-directory: ${{ inputs.library }}
run: |
VERSION=$(poetry version --short)
echo "Checking for ${{ github.event.inputs.library }}==$VERSION on PyPI..."
PACKAGE_NAME=$(poetry version | awk '{print $1}')
echo "Checking for $PACKAGE_NAME==$VERSION on PyPI..."
for i in {1..10}; do
if python -m pip install ${{ github.event.inputs.library }}==${VERSION} --dry-run >/dev/null 2>&1; then
echo "Package ${{ github.event.inputs.library }}==${VERSION} is available on PyPI."
if python -m pip install $PACKAGE_NAME==${VERSION} --dry-run >/dev/null 2>&1; then
echo "Package $PACKAGE_NAME==${VERSION} is available on PyPI."
break
else
echo "Package ${{ github.event.inputs.library }}==${VERSION} not available yet. Waiting 15 seconds..."
echo "Package $PACKAGE_NAME==${VERSION} not available yet. Waiting 15 seconds..."
sleep 15
fi
if [ $i -eq 10 ]; then
echo "Package did not become available in time."
exit 1
fi
done

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract version for tagging Docker image
working-directory: ${{ env.MODULE_PATH }}
id: get_version
run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV

- name: Build Docker images
working-directory: ./deploy
run: |
make version=${{ env.VERSION }} build-${{ github.event.inputs.library }}

- name: Push Docker images
run: |
docker push tensoropsai/${{ github.event.inputs.library }}:${{ env.VERSION }}
32 changes: 24 additions & 8 deletions .github/workflows/upload-pypi-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,35 @@ jobs:
- name: Build and publish to PyPI
working-directory: ./libs/proxy
run: |
CURRENT_VERSION=$(poetry version --short)
FINAL_VERSION=$(echo "$CURRENT_VERSION" | sed -E 's/[a-zA-Z]+[0-9]*//')

echo "Checking for llmstudio-proxy==$FINAL_VERSION on PyPI..."
if python -m pip install llmstudio-proxy==$FINAL_VERSION --dry-run >/dev/null 2>&1; then
echo "Package llmstudio-proxy==$FINAL_VERSION is already available on PyPI. Please bump version."
exit 1
fi
done

poetry version "$FINAL_VERSION"
echo "Updated version: $(poetry version --short)"

poetry build
poetry publish

# Extract the new version number from pyproject.toml
- name: Extract version for tagging Docker image
- name: Commit and push updated pyproject.toml
working-directory: ./libs/proxy
run: |
echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add pyproject.toml
git commit -m "[fix] bump release version in pyproject.toml"
git push

- name: Extract version for tagging Docker image
working-directory: ./libs/proxy
id: get_version
run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV

# Wait for the package to become available on PyPI
- name: Wait for PyPI to update
Expand Down Expand Up @@ -71,11 +92,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract version for tagging Docker image
working-directory: ./libs/proxy
id: get_version
run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV

- name: Build Docker images
working-directory: ./deploy
run: |
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/upload-pypi-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,30 @@ jobs:
- name: Build and publish to PyPI
working-directory: ./libs/llmstudio
run: |
CURRENT_VERSION=$(poetry version --short)
FINAL_VERSION=$(echo "$CURRENT_VERSION" | sed -E 's/[a-zA-Z]+[0-9]*//')

echo "Checking for llmstudio==$FINAL_VERSION on PyPI..."
if python -m pip install llmstudio==$FINAL_VERSION --dry-run >/dev/null 2>&1; then
echo "Package llmstudio==$FINAL_VERSION is already available on PyPI. Please bump version."
exit 1
fi
done

poetry version "$FINAL_VERSION"
echo "Updated version: $(poetry version --short)"

poetry build
poetry publish

# Extract the new version number from pyproject.toml
- name: Extract version for tagging Docker image
- name: Commit and push updated pyproject.toml
working-directory: ./libs/llmstudio
run: |
echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add pyproject.toml
git commit -m "[fix] bump release version in pyproject.toml"
git push

# Wait for the package to become available on PyPI
- name: Wait for PyPI to update
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/upload-pypi-tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,35 @@ jobs:
- name: Build and publish to PyPI
working-directory: ./libs/tracker
run: |
CURRENT_VERSION=$(poetry version --short)
FINAL_VERSION=$(echo "$CURRENT_VERSION" | sed -E 's/[a-zA-Z]+[0-9]*//')

echo "Checking for llmstudio-tracker==$FINAL_VERSION on PyPI..."
if python -m pip install llmstudio-tracker==$FINAL_VERSION --dry-run >/dev/null 2>&1; then
echo "Package llmstudio-tracker==$FINAL_VERSION is already available on PyPI. Please bump version."
exit 1
fi
done

poetry version "$FINAL_VERSION"
echo "Updated version: $(poetry version --short)"

poetry build
poetry publish

# Extract the new version number from pyproject.toml
- name: Extract version for tagging Docker image
- name: Commit and push updated pyproject.toml
working-directory: ./libs/tracker
run: |
echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add pyproject.toml
git commit -m "[fix] bump release version in pyproject.toml"
git push

- name: Extract version for tagging Docker image
working-directory: ./libs/tracker
id: get_version
run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV

# Wait for the package to become available on PyPI
- name: Wait for PyPI to update
Expand Down Expand Up @@ -71,11 +92,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract version for tagging Docker image
working-directory: ./libs/tracker
id: get_version
run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV

- name: Build Docker images
working-directory: ./deploy
run: |
Expand Down
Loading
Loading