Giter VIP home page Giter VIP logo

openklyde's Introduction

Snake animation

Typing SVG Typing SVG

Typing SVG

  • Man Factory Worker I’m currently working on Transcription App

  • Man Construction Worker I’m looking to collaborate on Machine Learning and AI development

  • Man Detective I’m looking for help with OpenKlyde

  • ❓ Ask me about Computer Science, Programming, Machine Learning, AI, & etc!

  • Open Mailbox with Lowered Flag How to reach me [email protected]

  • 💡Fun fact I'm an Eagle Scout and love camping and the outdoors!

📋 Languages I use

C C++ C# Java Python Lua JavaScript TypeScript YAML HTML5 CSS3 Markdown LaTeX

📚 Frameworks, Platforms and Libraries

.Net Anaconda Angular Chart.js Electron.js Express.js FastAPI Flask jQuery NPM Next JS NodeJS OpenCV OpenGL p5js Poetry Qt React Svelte TailwindCSS Threejs Vue.js WebGL Yarn

🤖 ML/DL/AI

Matplotlib NumPy Pandas Plotly PyTorch scikit-learn SciPy TensorFlow

☁️ Hosting/SaaS

AWS Azure Cloudflare Firebase Github Pages Google Cloud

🗄️ Servers

Apache Gunicorn Nginx

💻 IDEs/Editors

Android Studio Jupyter Notebook Neovim Visual Studio Code Visual Studio

🕓 Version Control

Git GitHub GitLab

🏢 Office

LibreOffice Microsoft

💾 Operating Systems

Windows Linux macOS Android

📱 Devices

Android Arduino Raspberry Pi

🎶 Music

Audacity Sound Cloud Spotify YouTube Music

🎮 Gaming

Epic Games Godot Engine Humble Bundle Itch.io nVIDIA Steam Unreal Engine Xbox

🕹️ Game Consoles

Gamecube Playstation Playstation Vita Switch Wii Xbox

💸 Support Me 💸

working_coding

ko-fi

stats graph streak graph languages graph trophy graph

openklyde's People

Contributors

badgids avatar elbios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openklyde's Issues

Username with "?" in their username

If any user has "?" In their names it will produce an error when creating context file as windows do not allow ? In their filenames. This probably applies to the rest of forbidden letters like #, %, & and so on

How to connect to backend?

Hi, I was able to get the bot running and connected to discord, but I'm not sure where to put the api key or otherwise link it up to the LLM I'm running locally. Where/how do we input that info?

HTTP request failed with status: 404 when trying to connect to ooba

Hello :)
I have an issue with this app when it comes to connection to ooba with openai api.
I changed port to 5000 in text-default.json config file to match port with that from ooba. Bot turns on just fine, it also appears to connect to ooba. However when messaging bot in discord, I get this
obraz

I'm trying to figure out if it has something to do with openklyde, or openai api extension itself. Extention loads without that /v1 at the end
obraz

Bot won't answer.

image

When a prompt is entered in Discord, the bot.py file generates the following error.

Maybe seeing it in text format will help better...
C:\Users\User>python "C:\Users\User\Desktop\OpenKlyde-main\bot.py" [2023-09-03 15:59:53] [INFO ] discord.client: logging in using static token [2023-09-03 15:59:53] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: ec8941b72865d1786f03b7c65b57549a). Discord Bot is up and running. [2023-09-03 15:59:55] [ERROR ] discord.client: Ignoring exception in on_ready Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 257, in on_ready api_check = await functions.api_status_check(text_api["address"] + text_api["model"], headers=text_api["headers"]) KeyError: 'address' [2023-09-03 16:00:19] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:07:55] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:07:56] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:07:57] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:10:03] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:10:04] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:10:17] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:10:17] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte [2023-09-03 16:10:53] [ERROR ] discord.client: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 441, in _run_event await coro(*args, **kwargs) File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 280, in on_message await update_status() File "C:\Users\User\Desktop\OpenKlyde-main\bot.py", line 49, in update_status data = await functions.check_bot_temps() File "C:\Users\User\Desktop\OpenKlyde-main\functions.py", line 15, in check_bot_temps return output.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 39: invalid start byte

S:\AI\extra_scripts\strippedinfo.ps1 ?

Thanks for making this project! I'm really excited to give it a try, but I'm struggling to get it to run. The bot is connected to discord, but on first run I'm getting this error:

S:\AI\extra_scripts\strippedinfo.ps1 : The term 'S:\AI\extra_scripts\strippedinfo.ps1' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ S:\AI\extra_scripts\strippedinfo.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (S:\AI\extra_scripts\strippedinfo.ps1:String) [], CommandNotFoundExcepti
   on
    + FullyQualifiedErrorId : CommandNotFoundException

It's really unclear to me what this is a reference to. I see the call to this script in check_bot_temps() but don't quite understand what it's intended to do. Any ideas?

EDIT: actually, this doesn't seem to affect functionality. I'm still curious what this is intended to do, presumably calling some external powershell script somewhere, but I don't think it's included in the repo.

ERROR: Failed building wheel for llama-cpp-python

 -- Trying 'NMake Makefiles (Visual Studio 15 2017 x64 v141)' generator - failure
  --------------------------------------------------------------------------------

                  ********************************************************************************
                  scikit-build could not get a working generator for your system. Aborting build.

                  Building windows wheels for Python 3.11 requires Microsoft Visual Studio 2022.
  Get it with "Visual Studio 2017":

    https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2019":

      https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2022":

      https://visualstudio.microsoft.com/vs/

                  ********************************************************************************
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects

Feature Request: Internet capabilities

I think it'd be really useful if it could

Search the internet using search engines like Searx/SearNG, Google, Bing, DuckDuckGo.
(With configurable phrases to do so like "Search the web for" "Find information about" etc)
Summarize websites when you send a URL
Maybe even search on specific sites like Reddit, Youtube, and Wikipedia, if configured to do so
(Probably most simply with sites that let the search be in the URL like youtube
"https://www.youtube.com/results?search_query=Doodly")

It won't every reply

Discord Bot is up and running.
Task exception was never retrieved
future: <Task finished name='Task-13' coro=<send_to_model_queue() done, defined at G:\AI\OpenKlyde\bot.py:170> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
File "G:\AI\OpenKlyde\bot.py", line 178, in send_to_model_queue
await functions.add_to_conversation_history(content["user_input"], content["user"], content["user"])
File "G:\AI\OpenKlyde\functions.py", line 155, in add_to_conversation_history
await append_text_file(file_name, content)
File "G:\AI\OpenKlyde\functions.py", line 200, in append_text_file
with open(file, 'a+', encoding="utf-8") as context:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'context\Mage_Enderman.txt'

Can you add an option for it to continue?

Sometimes depending on the max token amount it can get cutoff
In the kobold ui you can just hit send again and it'll continue from where it left off but I don't think there's a way to do that over discord rn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.