Skip to content

Commit 864dcf2

Browse files
authored
Merge branch 'master' into err/scopes-and-tags
2 parents 45526f6 + e2d8200 commit 864dcf2

File tree

16 files changed

+1024
-102
lines changed

16 files changed

+1024
-102
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1313
with:
1414
fetch-depth: 1
1515

1616
- name: Set up Python 3.11
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
1818
with:
1919
python-version: 3.11.11
2020

21-
- uses: actions/cache@v3
21+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
2222
with:
2323
path: ~/.cache/pip
2424
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
@@ -54,12 +54,12 @@ jobs:
5454
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
5555

5656
steps:
57-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
5858
with:
5959
fetch-depth: 1
6060

6161
- name: Set up Python ${{ matrix.python-version }}
62-
uses: actions/setup-python@v2
62+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
1818
steps:
1919
- name: Checkout the repository
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
2121
with:
2222
fetch-depth: 0
2323
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
2424

2525
- name: Set up Python
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
2727

2828
- name: Detect version
2929
run: echo "REPO_VERSION=$(python3 posthog/version.py)" >> $GITHUB_ENV
@@ -35,7 +35,7 @@ jobs:
3535
run: make release && make release_analytics
3636

3737
- name: Create GitHub release
38-
uses: actions/create-release@v1
38+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
4141
with:

CHANGELOG.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
## 4.1.0 - 2025-05-01
2-
3-
1. Add exception context management:
4-
- New context manager with `posthog.new_context()`
5-
- Tag functions: `posthog.tag()`, `posthog.get_tags()`, `posthog.clear_tags()`
6-
- Function decorator:
7-
- `@posthog.tracked` - Creates context and captures exceptions thrown within the function
8-
- Automatic deduplication of exceptions to ensure each exception is only captured once
1+
## 4.3.0
2+
3+
dd exception context management:
4+
- New context manager with `posthog.new_context()`
5+
- Tag functions: `posthog.tag()`, `posthog.get_tags()`, `posthog.clear_tags()`
6+
- Function decorator:
7+
- `@posthog.tracked` - Creates context and captures exceptions thrown within the function
8+
- Automatic deduplication of exceptions to ensure each exception is only captured once
9+
10+
## 4.2.0 - 2025-05-22
11+
12+
Add support for google gemini
13+
14+
## 4.1.0 - 2025-05-22
15+
16+
Moved ai openai package to a composition approach over inheritance.
917

1018
## 4.0.1 – 2025-04-29
1119

posthog/ai/gemini/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from .gemini import Client
2+
3+
4+
# Create a genai-like module for perfect drop-in replacement
5+
class _GenAI:
6+
Client = Client
7+
8+
9+
genai = _GenAI()
10+
11+
__all__ = ["Client", "genai"]

0 commit comments

Comments
 (0)