Skip to content

Generative AI in Oldschool Runescape Chat, through Runelite Java plugin, Python Backend and Ollama LLMs

Notifications You must be signed in to change notification settings

adamhcj/chatpiplup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฌ๐Ÿง chatpiplup

Runelite plugin integration with Ollama through Python Backend to respond to chat messages in Oldschool Runescape with Generative AI image

๐Ÿ“น VIDEO PREVIEW

chatpippreview.mp4

Requirements:

  1. Your custom Runelite plugin
  2. Your deployed Ollama model
  3. Run Python Backend

image Runelite plugin

Open source Old School RuneScape client
https://github.com/runelite/runelite
Runelite Developer wiki: https://github.com/runelite/runelite/wiki

Set up your own plugin, then incorporate the codes from ExamplePlugin.java, into your plugin.
Essentially, on chat message, sends POST request to Python backend.

image Ollama local model deployment

Free, no api needed. unlimited calls. Runs locally which consumes computing resources though, and cannot compete with extremely large language models like GPT-4. But Llama3 works pretty well.
https://ollama.com/
https://github.com/ollama/ollama

Set up your own model. Python Backend calls llama3 model, but you may use other models available.

image Python Backend

This python backend app.py opens a Flask server and accepts the POST request from the Runelite plugin and sends it over to Ollama for a response. After receiving a response, pyautogui library types the response out. There is a queue implemented, and the message will only be processed when it is in the front of the queue.

Prompt used: Reply in a cute uwu way. Give short response.

Modify model = "llama3" if needed.

Modify if fc == "Friend Chat": and elif fc == "Clan Chat" to the name of your chats correspondingly.

About

Generative AI in Oldschool Runescape Chat, through Runelite Java plugin, Python Backend and Ollama LLMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published