gpt timeout 추가

This commit is contained in:
dhlim committed 2026-02-26 02:26:53 +00:00
1 parent 219e7ed7c0
commit 1512691504
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ async def make_youtube_seo_description(
"language" : project.language,
"target_keywords" : hashtags
}
chatgpt = ChatgptService()
chatgpt = ChatgptService(timeout = 180)
yt_seo_output = await chatgpt.generate_structured_output(yt_upload_prompt, yt_seo_input_data)
result_dict = {
"title" : yt_seo_output.title,
+1
View File
@@ -43,6 +43,7 @@ class ChatgptService:
text_format=output_format
)
# Response 디버그 로깅
logger.debug(f"[ChatgptService] attempt: {attempt}")
logger.debug(f"[ChatgptService] Response ID: {response.id}")
logger.debug(f"[ChatgptService] Response status: {response.status}")
logger.debug(f"[ChatgptService] Response model: {response.model}")