Strvm / meta-ai-api

Llama 3 API 70B & 405B (MetaAI Reverse Engineered)
265 stars 50 forks source link

How to avoid getting blocked by Meta? #36

Closed tqdo closed 1 month ago

tqdo commented 1 month ago

First thanks for the great repo. Basically the title, how do I avoid getting blocked by Meta if I send many requests? Do you support any proxy services so that not all requests come from my IP

Strvm commented 1 month ago

Hi the API supports proxies:

from meta_ai_api import MetaAI

proxy = {
    'http': 'http://proxy_address:port',
    'https': 'https://proxy_address:port'
}

ai = MetaAI(proxy=proxy)
response = ai.prompt(message="How to find out which mushrooms are edible?")
print(response)

Note that Meta might already be blocking some proxies (especially Datacenter IPs)

tqdo commented 1 month ago

thanks