g4fi

command module
v0.0.0-...-ffecb68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MIT Imports: 8 Imported by: 0

README

g4fi

g4f-interactive - A simple command line client for g4f

Installation

git clone https://github.com/sheepla/g4fi.git
cd g4fi
go install

Usage

Using this tool requires the g4f server to be running and the ability to communicate with the server on the corresponding port number (default: 8080). If you are using Docker, you can start the container with the following:

docker run --rm -it -p 8080:8080 -p 1337:1337 -p 7900:7900 --shm-size="2g"  hlohaus789/g4f:latest

Command line usage is below:

Usage: g4fi [--timeout TIMEOUT] [--server SERVER]

Options:
  --timeout TIMEOUT, -t TIMEOUT
                         Timeout seconds [default: 30]
  --server SERVER, -s SERVER
                         hostname and port of g4f API instance [default: localhost:8080]
  --help, -h             display this help and exit

When you launch the command, it initiates an interactive session. This session allows to input prompt messages and receive corresponding results. You can utilize line editing with key bindings similar to GNU ReadLine, to efficiently input your prompt messages.. To exit the interactive session, simply type Ctrl-D.

[you@your-computer]$ g4fi

> hi

Hello! How can I assist you today?
>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL