Skip to content

Project-Llama/llamascript

Repository files navigation

LlamaScript

Black Format Upload to PyPi CodeQL

VS Code Extension Downloads GitHub commit activity GitHub License

LlamaScript is a no-code AI chatbot using Ollama.

Table of Contents

Installation

You can install LlamaScript using pip:

pip install llamascript

Usage

To use LlamaScript, create a .llama file and write your script. Here are a few functions you can use:

use(...)    // Specify the model to use
prompt(...) // Prompt the user for input
system(...) // System message for the AI
chat(...)   // Chat with the user
save(...)   // Save the model

Here's an example:

use("llama3")
prompt("Why is the sky blue?")
chat()

Note

For more examples see here.

You can then run LlamaScript with the following command:

llamascript myscript.llama

License

LlamaScript is licensed under the Apache 2.0 License. See LICENSE for more information.