schkovich
schkovich
CDCloudflare Developers
Created by Max on 4/12/2024 in #general-help
API endpoint does not cap input tokens at max token limit
It does not. You can try something like this if working with bert
tokenizer = BertTokenizerFast.from_pretrained("bert-base-uncased")
if len(tokenizer.encode(text)) > 512:
# handle logng text
tokenizer = BertTokenizerFast.from_pretrained("bert-base-uncased")
if len(tokenizer.encode(text)) > 512:
# handle logng text
or if working with ada check tiktoken.
2 replies
CDCloudflare Developers
Created by Riks on 12/7/2023 in #pages-help
Pages Functions limit consumed for no reason?
Thanks, I am well aware of that page. It's just a manual providing steps to follow. It gives no information about what each of those presets does.
33 replies
CDCloudflare Developers
Created by Riks on 12/7/2023 in #pages-help
Pages Functions limit consumed for no reason?
Do you know where to find information about the Nuxt Cloudflare Pages Adapter? I would expect that static pages should be pre-rendered in public and that the Adapter should do magic to serve server as functions. 🤔
33 replies
CDCloudflare Developers
Created by Spunkie on 12/14/2023 in #pages-help
Nuxt `npx nuxi generate` sometimes builds to `.output/public` and other times to `.dist`?
did you try nitro cloudflare_pages preset? https://nuxt.com/deploy/cloudflare
2 replies