Meta AI API Wrapper to interact with the Meta AI API
Project description
MetaAI API Wrapper
MetaAI is a Python library designed to interact with Meta's AI APIs that run in the backend of https://www.meta.ai/. It encapsulates the complexities of authentication and communication with the APIs, providing a straightforward interface for sending queries and receiving responses.
With this you can easily prompt the AI with a message and get a response, directly from your Python code. NO API KEY REQUIRED
Meta AI is connected to the internet, so you will be able to get the latest real-time responses from the AI. (powered by Bing)
Meta AI is running Llama 3 LLM.
Usage
-
Download:
pip install meta-ai-api
-
Initialization:
from meta_ai_api import MetaAI if __name__ == "__main__": ai = MetaAI() response = ai.prompt(message="Whats the weather in San Francisco today? And what is the date?") print(response) # Today's weather in San Francisco, CA, on Thursday, April 18, 2024, is mostly sunny # and not as warm, with a high of 71 degrees Fahrenheit and a low of 51 degrees Fahrenheit ¹. # The wind is coming from the west-southwest direction at a speed between 8 and 10 miles per hour, # and the chance of precipitation is 25% ². response = ai.prompt(message="What was the Warriors score last game?") print(response) # The Golden State Warriors' last game was against the Sacramento Kings on April 16, 2024, # at the Golden 1 Center, in which they lost 118-94 ¹ ². Here are some additional details about the game ¹: # Venue: Golden 1 Center, Sacramento, USA # Kings (SAC): 118 points # Warriors (GSW): 94 points # Quarter 1: Kings 31, Warriors 22 # Quarter 2: Kings 23, Warriors 28 # Quarter 3: Kings 37, Warriors 26 # Quarter 4: Kings 27, Warriors 18
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for meta_ai_api-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7e75c5b6df262bbae82c0aa38a6ed4cbcb1e45e17aecab4cc66b8ea3a485af7 |
|
MD5 | 4bd9a5d679252561c7b5a52b298bf576 |
|
BLAKE2b-256 | e6fa5638dd79ec2d61929b61c119cd6e2931677a69f6fdf3d5f5ef84275bd70c |