gpt timeout 추가

feature-scheduler
dhlim 2026-02-26 02:26:53 +00:00
parent 219e7ed7c0
commit 1512691504
2 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,7 @@ async def make_youtube_seo_description(
"language" : project.language, "language" : project.language,
"target_keywords" : hashtags "target_keywords" : hashtags
} }
chatgpt = ChatgptService() chatgpt = ChatgptService(timeout = 180)
yt_seo_output = await chatgpt.generate_structured_output(yt_upload_prompt, yt_seo_input_data) yt_seo_output = await chatgpt.generate_structured_output(yt_upload_prompt, yt_seo_input_data)
result_dict = { result_dict = {
"title" : yt_seo_output.title, "title" : yt_seo_output.title,

View File

@ -43,6 +43,7 @@ class ChatgptService:
text_format=output_format text_format=output_format
) )
# Response 디버그 로깅 # Response 디버그 로깅
logger.debug(f"[ChatgptService] attempt: {attempt}")
logger.debug(f"[ChatgptService] Response ID: {response.id}") logger.debug(f"[ChatgptService] Response ID: {response.id}")
logger.debug(f"[ChatgptService] Response status: {response.status}") logger.debug(f"[ChatgptService] Response status: {response.status}")
logger.debug(f"[ChatgptService] Response model: {response.model}") logger.debug(f"[ChatgptService] Response model: {response.model}")