Skip to content

Commit

Permalink
Merge pull request #1 from micheam/feature/input_file_on_chat
Browse files Browse the repository at this point in the history
feature: input file on chat
  • Loading branch information
micheam authored Dec 15, 2024
2 parents d06937c + dd9c307 commit f4fe9e6
Show file tree
Hide file tree
Showing 15 changed files with 607 additions and 272 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY : clean test install
SOURCE = $(shell find . -name '*.go')
USER_BIN = $(shell echo $$HOME)/bin
TEST_OPTS = -v -tags e2e
TEST_OPTS = -tags e2e

chat : test ./cmd/chat/main.go $(SOURCE)
go build -o ./bin/chat ./cmd/chat
Expand Down
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

![screenshot](screenshot.png)

AICO is an AI-powered text generation tool using OpenAI's GPT-4.
AICO is an AI-powered text generation tool using OpenAI's GPT-4 and other supported models.

## Install

Expand Down Expand Up @@ -45,7 +45,7 @@ Once you have an API key, you can set it in the `OPENAI_API_KEY` environment var
export OPENAI_API_KEY=<your API key>
```

## Usage of `chat` Command
## Usage of the `chat` Command

After building the binary, you can run `chat` to start chatting with AI.

Expand All @@ -57,7 +57,7 @@ USAGE:
chat [global options] command [command options] [arguments...]
VERSION:
0.0.7
0.0.11
COMMANDS:
Expand Down Expand Up @@ -96,6 +96,23 @@ Conversation with gpt-4-1106-preview
Hello, world.
```

You can input Image URL to get the description of the image.
(with `chatgpt-4o-latest` model)

```bash
$ chat --model=chatgpt-4o-latest tui
Conversation with chatgpt-4o-latest
------------------------------
> What is in this image?
>
> <https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg>
> ;;

This image shows a serene natural landscape with a wooden boardwalk path extending through a lush green
field. The sky is bright and blue with scattered clouds, creating a peaceful and vibrant outdoor scene.
Trees and bushes are visible in the background, adding to the natural beauty of the setting.
```

### Batch Mode

To send a message to AI, use the `send` subcommand:
Expand Down
Loading

0 comments on commit f4fe9e6

Please sign in to comment.