-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cache): use
get_llm_cache
and set_llm_cache
instead of `langc…
…hain.llm_cache` (#147) * 🍱 update logo asset * ⬆️ upgrade base dependencies * ⬆️ upgrade example dependencies * 🐛 fix langchain.llm_cache warning use get_llm_cache() and set_llm_cache() functions * 🔧 pre-commit autoupdate * 👷 add new workflow to upgrade dependencies * 🎨 pre-commit run * 📌 pin pydantic dependency v2.0+ support will be added in v0.8 * 🎨 minor change
- Loading branch information
Showing
11 changed files
with
638 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Dependency Manager | ||
|
||
on: | ||
workflow_dispatch: # Allow running on-demand | ||
schedule: | ||
# Every Sunday at 1PM UTC | ||
- cron: 0 13 * * 6 | ||
|
||
env: | ||
PYTHON_VERSION: 3.9 | ||
|
||
jobs: | ||
upgrade: | ||
name: Weekly dependency upgrade | ||
runs-on: ubuntu-latest | ||
env: | ||
BRANCH_NAME: deps/weekly-upgrade | ||
steps: | ||
- name: Code checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Upgrade base dependencies | ||
run: | | ||
pip install -U poetry | ||
poetry update | ||
- name: Upgrade dependencies of demo examples | ||
run: | | ||
pip install -U pip pip-tools | ||
cd examples; pip-compile --upgrade requirements.in | ||
- name: Upgrade pre-commit hooks | ||
run: | | ||
pip install pre-commit | ||
pre-commit autoupdate | ||
- name: Detect changes | ||
id: changes | ||
run: echo "count=$(git status --porcelain=v1 2>/dev/null | wc -l)" >> $GITHUB_OUTPUT | ||
|
||
- name: Commit & push changes | ||
if: steps.changes.outputs.count > 0 | ||
run: | | ||
git config user.name "github-actions" | ||
git config user.email "github-actions@github.com" | ||
git add . | ||
git commit -m "build(deps): upgrade dependencies" | ||
git push -f origin ${{ github.ref_name }}:$BRANCH_NAME | ||
- name: Open pull request | ||
if: steps.changes.outputs.count > 0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
PR=$(gh pr list --head $BRANCH_NAME --json number -q '.[0].number') | ||
if [ -z $PR ]; then | ||
gh pr create \ | ||
--draft \ | ||
--head $BRANCH_NAME \ | ||
--title "build(deps): upgrade dependencies" \ | ||
--body "Full log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ | ||
--label "dependencies" | ||
else | ||
echo "Pull request already exists, won't create a new one." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
Oops, something went wrong.