Skip to content

Fetch request inside library could not be completed from some locations #138

@opravdin

Description

@opravdin

Hi! First of all, thank you for your library, it's very useful :)

Context: This library is used in popular software N8N which helps automating a lot of workflows. When working with AI nodes, there are calls to this library to estimate token count (including when working with local LLMs through ollama). But in your code there is a request to tiktoken.pages.dev. Most of the times it works fine, but there are locations where availability of this destination is limited: some cloud providers (including some cloud installations of N8N itself), and local instances in some countries (seen a report from China, Russia and Armenia). See: n8n-io/n8n#12670
This results in long wait time before connection failure.

Question: Could you review settings of hosting provider or other configuration to make it possible for users from these locations to fetch the configuration files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions