gpt timeout 추가
parent
219e7ed7c0
commit
1512691504
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue