docs.langflux.space
  • Welcome to LangFlux
  • Using LangFlux
    • API
    • Streaming
    • Embed
    • Variables
  • Configuration
    • Auth
      • Chatflow Level
    • Rate Limit
  • Integrations
    • Cache
      • InMemory Cache
    • Chains
      • Conversational Retrieval QA Chain
      • Vectara QA Chain
    • Document Loaders
      • S3 File Loader
      • PDF Files
    • Chat Models
      • Azure ChatOpenAI
      • ChatLocalAI
      • Google VertexAI
    • Embeddings
      • Azure OpenAI Embeddings
      • LocalAI Embeddings
    • Memory
      • Short Term Memory
      • Long Term Memory
        • Zep Memory
      • Threads
    • Text Splitters
      • Character Text Splitter
    • Tools
      • Custom Tool
    • Vector Stores
      • Chroma
      • Pinecone
      • Elastic
      • Qdrant
      • SingleStore
      • Supabase
      • Vectara
    • Utilities
      • Set/Get Variable
      • If Else
    • External Integrations
      • Zapier Zaps
  • Use Cases
    • Web Scrape QnA
    • Webhook Tool
Powered by GitBook
On this page

Was this helpful?

  1. Configuration

Rate Limit

PreviousChatflow LevelNextIntegrations

Last updated 1 year ago

Was this helpful?

When you share your chatflow to public with no API authorization through API or embedded chat, anybody can access the flow. To prevent spamming, you can set the rate limit on your chatflow.

  • Message Limit per Duration: How many messages can be received in a specific duration. Ex: 20

  • Duration in Seconds: The specified duration. Ex: 60

  • Limit Message: What message to return when the limit is exceeded. Ex: Quota Exceeded

Using the example above, that means only 20 messages are allowed to be received in 60 seconds. The rate limitation is tracked by IP-address. If you have deployed LangFlux on cloud service, you'll have to set NUMBER_OF_PROXIES env variable.

Rate Limit Setup Guide

  1. Host LangFlux: Begin by hosting the LangFlux service.

  2. Set Environment Variable: Create an environment variable named NUMBER_OF_PROXIES and set its value to 1 within your hosting environment.

  3. Check IP Address: To verify the IP address, access the following URL: {{hosted_url}}/api/v1/ip. You can do this either by entering the URL into your web browser or by making an API request.

  4. Compare IP Addresses: After making the request, compare the IP address returned to your current IP address. You can find your current IP address by visiting either of these websites:

  5. Adjust Proxies: If the IP address returned does not match your current IP address, increase the number of proxies by 1. Repeat this process until the IP address matches your own.

http://ip.nfriedly.com/
https://api.ipify.org/