Code Monkey home page Code Monkey logo

jambots's People

Contributors

artero avatar josegm avatar pablorc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

josegm

jambots's Issues

Create bot option timeout and openai_apikey

Now this value is hardcoded in the code:

# lib/jambots/bot.rb
@client = OpenAI::Client.new(access_token: openai_api_key, request_timeout: 240)

The openai_api_key is utilized in the Bot#initialize method, but it is not used in the controllers. Allowing this to be added as a bot option could prove useful.

Implement a Minimalist Renderer for Piped Commands

Introducing a minimalist renderer without extra information could be beneficial for using the jambots chat command within a pipe. This would streamline the output and make it more suitable for further processing in such scenarios.

Add --format option

exe/jambots chat # Uses CLI
exe/jambots chat --format plain # no pretty
exe/jambots chat --format json # Some kind of json thing

And --no-format, -n as shortcut of --format plain

Create dev bot example

Add an examples_and_experiments directory and include an example demonstrating how I'm using Jambots for development in RoR.

Add support to Llama.cpp

Allow the possibility to use llama.cpp models.

Planned changes:

  • We need to add new options in the bot.yml file to specify which client the bot should run with and any extra client configurations required by the clients.
  • We should create a factory that enables the use of different clients.
  • Develop OpenAI and LLamaCpp client implementations.

Handle OpenAI errors

Implement a custom Error for cases when the OpenAI API returns an error response. In the "ChatController," we can catch and display a more descriptive error message to the user via stderr.

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.