Increase Claude API timeout from 120s to 300s for image analysis

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-09 20:58:15 -07:00
parent 93a2738ae1
commit d8a308a03e

View file

@ -124,7 +124,7 @@
<cfset arrayAppend(requestBody["messages"], userMessage)>
<!--- Call Claude API for this image --->
<cfhttp url="https://api.anthropic.com/v1/messages" method="POST" timeout="120" result="httpResult">
<cfhttp url="https://api.anthropic.com/v1/messages" method="POST" timeout="300" result="httpResult">
<cfhttpparam type="header" name="Content-Type" value="application/json">
<cfhttpparam type="header" name="x-api-key" value="#CLAUDE_API_KEY#">
<cfhttpparam type="header" name="anthropic-version" value="2023-06-01">