Skip to content

Commit c0a09e1

Browse files
Akhilesh NegiAkhilesh Negi
authored andcommitted
cleanup
1 parent 64ab254 commit c0a09e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

backend/app/api/routes/responses.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from sqlmodel import Session
99

1010
from app.api.deps import get_current_user_org, get_db
11+
from app.api.routes.threads import send_callback
1112
from app.crud.credentials import get_provider_credential
1213
from app.crud.assistants import get_assistant_by_id
1314
from app.models import UserOrganization
@@ -68,11 +69,6 @@ class _APIResponse(BaseModel):
6869
chunks: list[FileResultChunk]
6970
diagnostics: Optional[Diagnostics] = None
7071

71-
class Config:
72-
extra = (
73-
Extra.allow
74-
) # This allows additional fields to be included in the response
75-
7672

7773
class ResponsesAPIResponse(APIResponse[_APIResponse]):
7874
pass
@@ -167,7 +163,6 @@ def process_response(
167163
logger.info(
168164
f"Sending callback to URL: {request.callback_url}, assistant={request.assistant_id}, project_id={request.project_id}, organization_id={organization_id}"
169165
)
170-
from app.api.routes.threads import send_callback
171166

172167
send_callback(request.callback_url, callback_response.model_dump())
173168
logger.info(

0 commit comments

Comments
 (0)