feat: 텔레그램 이미지 첨부 기능 및 이미지 처리 개선
- /idea, /topic 명령어에 최대 3장 이미지 첨부 기능 추가 - 1장: 본문 최상단 배치, 2~3장: 본문 중간 균등 분산 배치 - base64 data URI 임베딩으로 핫링크 차단 문제 해결 - Claude API timeout=120s, max_retries=0 설정 (401 무한대기 방지) - DuckDuckGo 제목 검색 폴백 및 문화/엔터 섹션 이미지 필터링 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -81,7 +81,11 @@ class ClaudeWriter(BaseWriter):
|
||||
return ''
|
||||
try:
|
||||
import anthropic
|
||||
client_kwargs = {'api_key': self.api_key}
|
||||
client_kwargs = {
|
||||
'api_key': self.api_key,
|
||||
'timeout': 120.0, # 2분 타임아웃
|
||||
'max_retries': 0, # 401 등 에러 시 재시도 안 함 → 즉시 fallback
|
||||
}
|
||||
if self.base_url:
|
||||
client_kwargs['base_url'] = self.base_url
|
||||
client = anthropic.Anthropic(**client_kwargs)
|
||||
|
||||
Reference in New Issue
Block a user