Skip to content

Commit

Permalink
Update dependency autoblocksai to v0.0.28 (#107)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [autoblocksai](https://togithub.com/autoblocksai/python-sdk) |
`0.0.27` -> `0.0.28` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/autoblocksai/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/autoblocksai/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/autoblocksai/0.0.27/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/autoblocksai/0.0.27/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [autoblocksai](https://togithub.com/autoblocksai/python-sdk) |
`^0.0.27` -> `^0.0.28` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/autoblocksai/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/autoblocksai/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/autoblocksai/0.0.27/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/autoblocksai/0.0.27/0.0.28?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>autoblocksai/python-sdk (autoblocksai)</summary>

###
[`v0.0.28`](https://togithub.com/autoblocksai/python-sdk/compare/0.0.27...0.0.28)

[Compare
Source](https://togithub.com/autoblocksai/python-sdk/compare/0.0.27...0.0.28)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/autoblocks-examples).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicole White <[email protected]>
  • Loading branch information
renovate[bot] and Nicole White authored Feb 23, 2024
1 parent be454e5 commit cca0e4b
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 19 deletions.
8 changes: 4 additions & 4 deletions Python/flask/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Python/flask/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ packages = [{include = "myapp"}]

[tool.poetry.dependencies]
python = "^3.9"
autoblocksai = "^0.0.27"
autoblocksai = "^0.0.28"
python-dotenv = "^1.0.0"
flask = "^3.0.0"
8 changes: 4 additions & 4 deletions Python/openai-tracing/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Python/openai-tracing/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packages = [{include = "src"}]
[tool.poetry.dependencies]
python = "^3.9"
openai = "^1.0.0"
autoblocksai = "^0.0.27"
autoblocksai = "^0.0.28"
python-dotenv = "^1.0.0"

[tool.poetry.scripts]
Expand Down
5 changes: 3 additions & 2 deletions Python/openai-tracing/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import dotenv
from autoblocks.tracer import AutoblocksTracer
from autoblocks.vendor.openai import serialize_completion
from openai import OpenAI

dotenv.load_dotenv(".env")
Expand Down Expand Up @@ -47,7 +46,9 @@ def main():
"ai.response",
span_id=span_id,
properties=dict(
response=serialize_completion(completion),
# OpenAI v1 returns pydantic models, which have a model_dump_json
# method for converting to JSON.
response=completion.model_dump_json(),
latency=(time.time() - start_time) * 1000,
),
)
Expand Down
8 changes: 4 additions & 4 deletions Python/prompt-sdk-headless/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Python/prompt-sdk-headless/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packages = [{include = "src"}]
[tool.poetry.dependencies]
python = "^3.9"
openai = "^1.0.0"
autoblocksai = "0.0.27"
autoblocksai = "0.0.28"
python-dotenv = "^1.0.0"
pydantic = "^2.5.3"

Expand Down
5 changes: 3 additions & 2 deletions Python/prompt-sdk-headless/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import dotenv
from autoblocks.tracer import AutoblocksTracer
from autoblocks.vendor.openai import serialize_completion
from openai import OpenAI

from src.prompts import TextSummarizationMinorVersion
Expand Down Expand Up @@ -56,7 +55,9 @@ def main():
tracer.send_event(
"ai.response",
properties=dict(
response=serialize_completion(response),
# OpenAI v1 returns pydantic models, which have a model_dump_json
# method for converting to JSON.
response=response.model_dump_json(),
promptTracking=prompt.track(),
),
)
Expand Down

0 comments on commit cca0e4b

Please sign in to comment.