-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(weave): Add tracking for openai moderation and embeddings api (#…
…3252) * feat(weave): Add tracking for openai moderation and embeddings api * different settings for moderations and embeddings * Add tests for embedding and moderation autopatching * Actually run things with nox * finish up tests * expect embeddings tracing in llamaindex and langchain * expect embeddings tracing in llamaindex and langchain, mod len of flattened calls * expect embeddings tracing in llamaindex and langchain, mod len of flattened calls * surface embedding calls at the right level
- Loading branch information
1 parent
ee585dc
commit f542138
Showing
8 changed files
with
776 additions
and
2 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
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
206 changes: 206 additions & 0 deletions
206
tests/integrations/openai/cassettes/openai_test/test_openai_async_embeddings_patching.yaml
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,206 @@ | ||
interactions: | ||
- request: | ||
body: '{"input":"embed this","model":"text-embedding-3-small","encoding_format":"base64"}' | ||
headers: | ||
accept: | ||
- application/json | ||
accept-encoding: | ||
- gzip, deflate, zstd | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '82' | ||
content-type: | ||
- application/json | ||
host: | ||
- api.openai.com | ||
user-agent: | ||
- AsyncOpenAI/Python 1.57.3 | ||
x-stainless-arch: | ||
- arm64 | ||
x-stainless-async: | ||
- async:asyncio | ||
x-stainless-lang: | ||
- python | ||
x-stainless-os: | ||
- MacOS | ||
x-stainless-package-version: | ||
- 1.57.3 | ||
x-stainless-retry-count: | ||
- '0' | ||
x-stainless-runtime: | ||
- CPython | ||
x-stainless-runtime-version: | ||
- 3.11.4 | ||
method: POST | ||
uri: https://api.openai.com/v1/embeddings | ||
response: | ||
body: | ||
string: !!binary | | ||
H4sIAAAAAAAAA1SaSc+zPLel59+vePRMqU+hSeLNOyN0IRhsAqS5S6USkBYSQmvAR+e/H5G7dKpq | ||
kgFBYMB77Wst+z/+9efP30+aX7Pu7z9//r6ebff3f8zHLkmX/P3nz//8158/f/78x/f3/zvz+k6v | ||
l8uzvH9P//75LC/X8e8/f8T/PvJ/T/rnz18vkE6MTHgVcRyhNxQEENs9cJJ2r6Lq4X4KDart9y4f | ||
T95jUqHzdtQRKTNYMAkJFBv7RTf37oi50y5buAO/kqU5tCmvzdBEclyq1LLjRySdTIOst1OzZobJ | ||
BtwZDTFhHPWe2VkfpoMhGomaq6FORqWTOF+0VQD9LdDY4RJvUmUZ8QzMg3NjkSRu8o8BD4D84BEa | ||
2JFlKFI7vNUeuSeK32QfyRGEIVyn8UZ3K0q4fIRBBvUICj1FTdJIbXoIoaq7D/U30ZOLTtqKqBHZ | ||
h3n35gfJqjcMaiNLexaG8YZLFSwF+HxWNs36SEfiGV+esN7pLZEmb4mHDnCACiIgakjio+Hbg6PD | ||
93l3dmhHMi2wBquLeyDLZ5Tn4iUeve/7ZfqTDsZg5624GjVkUbynfTPi9jGoThNumZ7yopmcCA2Q | ||
q4FOA1RfGyls+BK8g10xe80NxC+oJWq5cM70KrAOcZoXgWo9nBtLvfBtVLk36urZMMs+WOzdhpde | ||
aKrbq3RieDU0zbCPH6C293JBJjEsc/HoO0/1IAUWS7WgQfxiujJ6Mc9n5yM38nFtJgm4jqqxn9VY | ||
GeMiPxD1pQQ6NXaukPLAQAWkhRJTX66ziOdN4akxIwFBbzKmg+oZobrfkT0ZbjhFk5z7AxwuXsDS | ||
dHrxUTtoCaziZmRWIT6iPs4eb1XkBLMgj3XcSPppgp9VaFISNT8RX6SFC5XXfdguj4xUfvOLCRfS | ||
1exwb5DRr8QqA1tjjDniuIvkwXs8VX5XAmavGItGsxhtkI/sTTfPq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5111/7v7FNey/fvPH/l3q8Hf7tMlr//n | ||
8L/mG/3nv/4LAAD//wMA3GYCk94gAAA= | ||
headers: | ||
CF-Cache-Status: | ||
- DYNAMIC | ||
CF-RAY: | ||
- 8f12d0ca8cc9ddb2-DFW | ||
Connection: | ||
- keep-alive | ||
Content-Encoding: | ||
- gzip | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 13 Dec 2024 03:19:58 GMT | ||
Server: | ||
- cloudflare | ||
Set-Cookie: | ||
- __cf_bm=8OrYJ27G0T2k3GwdfOkcxWgrU0RzIlxwBlemzx.k_5U-1734059998-1.0.1.1-mzTeRj51O67D9oMNYGoJhFqYhiIFE41tEzlZDPW33.5pKcAehjSZaVZrWYdjXdrINskD26anAWdAPWy_Io5Wtw; | ||
path=/; expires=Fri, 13-Dec-24 03:49:58 GMT; domain=.api.openai.com; HttpOnly; | ||
Secure; SameSite=None | ||
- _cfuvid=hXF9bvLtiUxnlwRnz1vIQVZDPM2HmranVz_wwkn2S2g-1734059998111-0.0.1.1-604800000; | ||
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None | ||
Transfer-Encoding: | ||
- chunked | ||
X-Content-Type-Options: | ||
- nosniff | ||
access-control-allow-origin: | ||
- '*' | ||
access-control-expose-headers: | ||
- X-Request-ID | ||
alt-svc: | ||
- h3=":443"; ma=86400 | ||
openai-model: | ||
- text-embedding-3-small | ||
openai-organization: | ||
- wandb | ||
openai-processing-ms: | ||
- '31' | ||
openai-version: | ||
- '2020-10-01' | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains; preload | ||
x-ratelimit-limit-requests: | ||
- '10000' | ||
x-ratelimit-limit-tokens: | ||
- '10000000' | ||
x-ratelimit-remaining-requests: | ||
- '9999' | ||
x-ratelimit-remaining-tokens: | ||
- '9999998' | ||
x-ratelimit-reset-requests: | ||
- 6ms | ||
x-ratelimit-reset-tokens: | ||
- 0s | ||
x-request-id: | ||
- req_85bd5aa437d13281f7fc4ebea31f0ff5 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
90 changes: 90 additions & 0 deletions
90
tests/integrations/openai/cassettes/openai_test/test_openai_async_moderation_patching.yaml
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,90 @@ | ||
interactions: | ||
- request: | ||
body: '{"input":"...text to classify goes here...","model":"omni-moderation-latest"}' | ||
headers: | ||
accept: | ||
- application/json | ||
accept-encoding: | ||
- gzip, deflate, zstd | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '77' | ||
content-type: | ||
- application/json | ||
host: | ||
- api.openai.com | ||
user-agent: | ||
- AsyncOpenAI/Python 1.57.3 | ||
x-stainless-arch: | ||
- arm64 | ||
x-stainless-async: | ||
- async:asyncio | ||
x-stainless-lang: | ||
- python | ||
x-stainless-os: | ||
- MacOS | ||
x-stainless-package-version: | ||
- 1.57.3 | ||
x-stainless-retry-count: | ||
- '0' | ||
x-stainless-runtime: | ||
- CPython | ||
x-stainless-runtime-version: | ||
- 3.11.4 | ||
method: POST | ||
uri: https://api.openai.com/v1/moderations | ||
response: | ||
body: | ||
string: !!binary | | ||
H4sIAAAAAAAAA5ySzW7rIBBG93kK5HXtMDPAQF6lqiJqkwTJsSObXLWq+u5X+U9bx026QTJ8B8Yz | ||
52MiRBarbCaydVt1OQZTVc4ySFav+BrYYVWCqUAaII86e9oB67YK9Y5p103Md1+dT7Ft8tqn0Kc8 | ||
Nik0qT+Eu9Bv69RnM/E8EUKIj/0qRLao/XIZdm8vfN2Hp9N+6VNYtl0MO+aUFiJb+c73/To06Tvy | ||
5XCaVl3wKTSxWQ4E+/C29fXgDSnc2P7lyljXsYzp9sn0X2zr4br7UC/yle/W00PTfon0qduWu1b3 | ||
Y8Gbvz1dx6bththDhWUYOZouO79ZxfIUOSY+vw/ufd6XbTc6PVlIKaWWRKQ1a6XRAih1zzy5AAVO | ||
AjlnnSEbcjM03cMLiqTWLC0QKgPK/Rz3IQdaOyuRDRErskjjAriCjGVgNJaZpeOQ86APh9uRFJC2 | ||
qJgNOSVx1JAjIyUysTEMFsihHXcGCrCKgJxE7dgZrb/35YZDUEinCRAtgnKaLN4As5nAAhUraZ3V | ||
Ch2w5qHmXxw79hYUIJLVSpEykoalO2ZZSakVaY0srSMc19AUIK3VGiQYZffl3JbSbzZ1DNU8Nptt | ||
mqf3zaihz+d9IbIU3lJ23ni5R9M7+bOvd7+3t/aB9N/quij8GHDl8d0d+CHzH8gvTj/KPzqui+F3 | ||
YleeP0hcyT5GnqyfnNaXyed/AAAA//8DAOTybXvbBwAA | ||
headers: | ||
CF-Cache-Status: | ||
- DYNAMIC | ||
CF-RAY: | ||
- 8f12cd363e762fdc-DFW | ||
Connection: | ||
- keep-alive | ||
Content-Encoding: | ||
- gzip | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 13 Dec 2024 03:17:31 GMT | ||
Server: | ||
- cloudflare | ||
Set-Cookie: | ||
- __cf_bm=Qr5.qfRySMNCzUPavCszRhkeHffVp1XlscN.uBaYNxE-1734059851-1.0.1.1-5Yg7IpO35VlPbizUKQpQDBSIbRby1ftrF2z0aUWMdZEpVHTrwGhRcrPYtLqaumOBP.AknEdD13fR318ip7aHrw; | ||
path=/; expires=Fri, 13-Dec-24 03:47:31 GMT; domain=.api.openai.com; HttpOnly; | ||
Secure; SameSite=None | ||
- _cfuvid=cAdIEFLy8d6tIO96o.0oZObHGQHfTbHqkLTPbYcCWkE-1734059851364-0.0.1.1-604800000; | ||
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None | ||
Transfer-Encoding: | ||
- chunked | ||
X-Content-Type-Options: | ||
- nosniff | ||
alt-svc: | ||
- h3=":443"; ma=86400 | ||
openai-organization: | ||
- wandb | ||
openai-processing-ms: | ||
- '94' | ||
openai-version: | ||
- '2020-10-01' | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains; preload | ||
x-request-id: | ||
- req_2e6dd9871074b2be792dc16d10613a25 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.