+2
README.md
+2
README.md
···A Cloudflare Worker which works in conjunction with https://github.com/indexxing/Bluesky-Alt-Text. All endpoints are based off the original cloud function made by [symmetricalboy](https://github.com/symmetricalboy) [here](https://github.com/symmetricalboy/gen-alt-text/blob/main/functions/index.js), just in Typescript and prepackaged into a Cloudflare Worker environment.Documentation is served at the root of the worker deployment. There is a root path variable specified in the entrypoint file because my setup involves using a worker route wildcard on my custom domain.+**Note:** This does not support video captioning, or uploading larger media for processing yet like the source cloud function.
+11
-7
src/endpoints/condense_text.ts
+11
-7
src/endpoints/condense_text.ts
······-// * Original cloud function used "gemini-2.0-flash", but I think the lite version should work fine too.······
+9
-9
src/endpoints/generate.ts
+9
-9
src/endpoints/generate.ts
······-// * Original cloud function used "gemini-2.0-flash", but I think the lite version should work fine too.···
+10
-19
src/index.ts
+10
-19
src/index.ts
······
+22
-9
src/middleware/auth.ts
+22
-9
src/middleware/auth.ts
···
+9
-10
src/types.ts
+9
-10
src/types.ts
·········
+10
-1
wrangler.jsonc
+10
-1
wrangler.jsonc
···