Skip to content

Commit

Permalink
feat: Add Sentry error tracking for improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Jun 10, 2024
1 parent 365ed18 commit 863c414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
from typing import List, Literal

import gradio as gr
import sentry_sdk
from loguru import logger
from openai import OpenAI
from promptic import llm
from pydantic import BaseModel, ValidationError
from pypdf import PdfReader
from tenacity import retry, retry_if_exception_type

sentry_sdk.init(os.getenv("SENTRY_DSN"))


class DialogueItem(BaseModel):
text: str
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ google-generativeai~=0.6
loguru~=0.7
pypdf~=4.1
tenacity~=8.3
sentry-sdk~=2.5

0 comments on commit 863c414

Please sign in to comment.