Code Monkey home page Code Monkey logo

llm_audit's Introduction

This is a python module and script that uses g4f for ask GPT about somewhat that you put in stdin

Usage:

# Default model is llama_70b
# Default addition is none
# Default prefix is "There is a piece of code. Show me vulnerabilities in this code. Answer like \"$line_number $what_kind_of_vulnerability $way_to_fix\""
# Default role is "user"

$ llm_audit -m "model" -a "addition for question" -p "prefix for question" -r "role" < file_with_code # Request for LLM is intro+stdin+addition
or 
$ echo code | llm_audit -m "model" -a "addition for question" -p "prefix for question" -r "role" # Request for LLM is intro+stdin+addition

$ llm_audit -l # List all available models

Also you might to use this as module

import llm_audit
llm_audit.ask_llm(intro, code, addition, model)

llm_audit's People

Watchers

Diratof Azdimarlow avatar

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.