-
Couldn't load subscription status.
- Fork 5
Added logs for API Key, Collection and Documents Endpoint #246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
90d5288
5bcf0b7
5fad650
63adfb8
bf18df8
1a56355
690afeb
a132635
df7ad75
b031b49
629a234
7555a47
7c19029
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,7 +163,8 @@ def process_response( | |
| except openai.OpenAIError as e: | ||
| error_message = handle_openai_error(e) | ||
| logger.error( | ||
| f"OpenAI API error during response processing: {error_message}, project_id={request.project_id}, organization_id={organization_id}" | ||
| f"OpenAI API error during response processing: {error_message}, project_id={request.project_id}, organization_id={organization_id}", | ||
| exc_info=True, | ||
| ) | ||
| callback_response = ResponsesAPIResponse.failure_response(error=error_message) | ||
|
|
||
|
|
@@ -196,8 +197,8 @@ async def responses( | |
| _session, request.assistant_id, _current_user.organization_id | ||
| ) | ||
| if not assistant: | ||
| logger.error( | ||
| f"Assistant not found: assistant_id={request.assistant_id}, project_id={request.project_id}, organization_id={_current_user.organization_id}" | ||
| logger.warning( | ||
| f"Assistant not found: assistant_id={request.assistant_id}, project_id={request.project_id}, organization_id={_current_user.organization_id}", | ||
| ) | ||
| raise HTTPException( | ||
| status_code=404, | ||
|
|
@@ -211,7 +212,7 @@ async def responses( | |
| project_id=request.project_id, | ||
| ) | ||
| if not credentials or "api_key" not in credentials: | ||
| logger.error( | ||
| logger.warning( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will this be a warning or an error, because if we won't have an openai key, the endpoint won't work There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will be a error |
||
| f"OpenAI API key not configured for org_id={_current_user.organization_id}, project_id={request.project_id}, organization_id={_current_user.organization_id}" | ||
| ) | ||
| return { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.