Skip to content

Commit

Permalink
Adds documentation about the beta viewer feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverbolt committed Dec 10, 2024
1 parent 161c44b commit 7b3ebb9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,22 @@ Mac, Docker Desktop and Gemini-OpenAI-Proxy:

* See https://github.com/ipa-lab/hackingBuddyGPT/blob/main/MAC.md

## Beta Features

### Viewer

The viewer is a simple web-based tool to view the results of hackingBuddyGPT runs. It is currently in beta and can be started with:

```bash
$ hackingBuddyGPT Viewer
```

This will start a webserver on `http://localhost:4444` that can be accessed with a web browser.

To log to this central viewer, you currently need to change the `GlobalLogger` definition in [./src/hackingBuddyGPT/utils/logging.py](src/hackingBuddyGPT/utils/logging.py) to `GlobalRemoteLogger`.

This feature is not fully tested yet and therefore is not recommended to be exposed to the internet!

## Publications about hackingBuddyGPT

Given our background in academia, we have authored papers that lay the groundwork and report on our efforts:
Expand Down
4 changes: 2 additions & 2 deletions src/hackingBuddyGPT/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def add_message_update(self, message_id: int, action: StreamAction, content: str
@dataclass
class RemoteLogger:
console: Console
log_server_address: str
log_server_address: str = "localhost:4444"

tag: str = ""
run: Run = field(init=False, default=None)
Expand Down Expand Up @@ -378,4 +378,4 @@ def finalize(self, tokens_query: int, tokens_response: int, duration: datetime.t

GlobalLocalLogger = Global(Transparent(Logger))
GlobalRemoteLogger = Global(Transparent(RemoteLogger))
GlobalLogger = GlobalLocalLogger
GlobalLogger = GlobalRemoteLogger

0 comments on commit 7b3ebb9

Please sign in to comment.