Move the rowing photo Claude call to the Python service
POST /rowing in the Go backend no longer calls the Anthropic SDK. It keeps the admin gate, EXIF date, duplicate check, sanity bounds and insert, and sends the image to a new internal Python route, POST /internal/rowing/read, which makes the Claude call and returns the three numbers it read. The route spends a paid call and has no auth of its own, so nginx 404s /py/internal/ and the route refuses anything carrying the proxy headers nginx adds. The python container now receives CLAUDE_API_KEY. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
/**
|
||||
* Admin form: upload photos of an erg monitor. The Go backend OCRs each image and
|
||||
* returns the parsed session, so this posts multipart/form-data to /api/rowing
|
||||
* Admin form: upload photos of an erg monitor. The Go backend has each image read
|
||||
* (by Claude, via the Python service) and returns the parsed session, so this posts multipart/form-data to /api/rowing
|
||||
* rather than using GraphQL. Uploads run in parallel and each file's row reports
|
||||
* its own outcome.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user