[FREE/OS] Meta Llama Model AI || CHAT

llama Meta Llama Extension

The MetaLlama extension facilitates interaction with the Llama AI model for chat functionalities in Android apps developed using MIT App Inventor. With this extension, users can seamlessly integrate Llama AI’s powerful chat capabilities into their applications.

All Blocks

Doc

  1. Token():
    blocks(7)
  • Description: Getter method for the API token.
  • Returns: The API token.
  1. Token(String token):
    blocks(8)
  • Description: Setter method for the API token.
  • Parameters:
    • token (String): The API token to set.
  1. FromJsonArray(String json, String key):
    blocks(4)
  • Description: Parses a JSON array and retrieves the value corresponding to a specific key from the JSON objects within the array.
  • Parameters:
    • json (String): The JSON array to parse.
    • key (String): The key whose value is to be retrieved.
  • Returns: The value corresponding to the specified key, or null if the key is not found.
  1. FromJsonObject(String json, String key):
    blocks(5)
  • Description: Parses a JSON object and retrieves the value corresponding to a specific key.
  • Parameters:
    • json (String): The JSON object to parse.
    • key (String): The key whose value is to be retrieved.
  • Returns: The value corresponding to the specified key, or null if the key is not found.
  1. CreateChat(YailDictionary messages):
    blocks(6)
  • Description: Initiates the creation of a chat asynchronously.
  • Parameters:
    • messages (YailDictionary): A dictionary containing chat messages.
  • Events:
    • OnCreateChat(String result): Triggered when the chat creation is successful, providing the result.
    • OnCreateChatError(String message): Triggered when an error occurs during chat creation, providing an error message.
  1. OnCreateChat(String result):
    blocks(2)
  • Description: Event raised when a chat is successfully created.
  • Parameters:
    • result (String): The result of the chat creation process.
  1. OnCreateChatError(String message):
    blocks(3)
  • Description: Event raised when an error occurs during chat creation.
  • Parameters:
    • message (String): The error message.

Demo Blocks

sssss

Demo

Source Code

AIX:

me.aemo.metallama.aix

Q: How to get api token?

A: just go to “llama-api.com” and login then go to “Llama API” to get token like this :point_down:

Thanks For

3 Likes

Error During Export apk


@silktune I test it and it is work fine for me

AIA

AI.aia (18.8 KB)

1 Like

Why your Token like that it is wrong
Untitled

that is should be like that

Note:
if it is not showed for you click Refresh button then it is will display for you, i think

2 Likes

working thanks i do mistake in api sorry for that :sweat_smile:

1 Like

Good lol :sweat_smile:

1 Like

I make a app inspired from you please check that

1 Like