Unused import OpenAIIntegration on Pydantic AI integration page

Aperta Adatta ai principianti
#19,432 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@minutechreview ci sta già lavorando.

Dal 30/9/2026.

  • #19460 di @pc-gs — chiusa senza merge
  • #19739 di @minutechreview — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
92/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Apri la pagina di integrazione di Pydantic AI collegata nell’issue e individua i primi due frammenti di codice Python. Rimuovi l’import inutilizzato OpenAIIntegration da entrambi i frammenti, quindi verifica che gli esempi non richiedano più il pacchetto openai esclusivamente a causa di quell’import.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Docs Platform: Python SDKs
SDK

Python SDK

Description

In the two code examples on the Pydantic AI integration page, the first two Python code snippets include the following import:

from sentry_sdk.integrations.openai import OpenAIIntegration

This import is however not used in the further code and has no intended side-effects that are needed for proper tracing. It does however give an error if the openai package is not installed, which is not correct.

I think this is a leftover from an older workaround, which was removed here: https://github.com/getsentry/sentry-docs/pull/15675/changes#diff-c4cf302beb9756f2cc64183534fbdef108dfe4fa330612789205c5340bb16dee

Suggested Solution

Remove the following line from both snippets on this page:

from sentry_sdk.integrations.openai import OpenAIIntegration

I can create a PR to do this if you want.

Lingua principale
MDX
Stelle
451
Fork
1.7k
Merge medio
1g 10h
PR unite (30g)
566

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-docs

Tutte le issue di getsentry/sentry-docs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.