diff --git a/CHANGELOG.md b/CHANGELOG.md index f1a70ac859..f613aead29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add example to `opentelemetry-instrumentation-openai-v2` - ([#0000](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/0000)) + ([#3006](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3006)) - `opentelemetry-instrumentation-sqlalchemy` Update unit tests to run with SQLALchemy 2 ([#2976](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2976)) - Add `opentelemetry-instrumentation-openai-v2` to `opentelemetry-bootstrap` diff --git a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/main.py b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/main.py index 7bc1a99cf2..3247d2807f 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/main.py +++ b/instrumentation-genai/opentelemetry-instrumentation-openai-v2/example/main.py @@ -18,7 +18,9 @@ def main(): }, ] model = os.getenv("CHAT_MODEL", "gpt-4o-mini") - chat_completion = client.chat.completions.create(model=model, messages=messages) + chat_completion = client.chat.completions.create( + model=model, messages=messages + ) print(chat_completion.choices[0].message.content)