meta-ai-api icon indicating copy to clipboard operation
meta-ai-api copied to clipboard

Was unable to obtain a valid response from Meta AI

Open Gusklin opened this issue 1 year ago • 0 comments

A few days ago I used the api to get some responses from llama3 and it worked like a charm, now I tried to get the responses using a loop and didn't work, not even single responses is working now. My code is

from meta_ai_api import MetaAI

abacatada = ['flu', 'roundworm', 'AIDS', 'hepatitis', 'threadworms']

ai = MetaAI()

for i in range(len(abacatada)):
    response = ai.prompt(message=f"I will say something, only answer me if one of the following: Worm, Disease. How would you classify: {abacatada[i]}")
    print(response['message'])

Using llama3 direct from the browser is working, I am using jupyter.

Gusklin avatar May 10 '24 18:05 Gusklin