Skip to content

Commit

Permalink
Merge pull request OpenInterpreter#223 from dheavy/fix/precommit-linter
Browse files Browse the repository at this point in the history
Fix pre-commit linter
  • Loading branch information
tyfiero authored Apr 8, 2024
2 parents 65481c4 + ec1e41e commit a40c804
Show file tree
Hide file tree
Showing 46 changed files with 951 additions and 622 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.2"
- repo: https://github.com/psf/black
rev: 24.3.0 # Use the latest revision of Black
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- id: black
language_version: python3
args: ["software/"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand Down
5 changes: 2 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Roadmap

Our goal is to power a billion devices with the 01OS over the next 10 years. The Cambrian explosion of AI devices.
Our goal is to power a billion devices with the 01OS over the next 10 years. The Cambrian explosion of AI devices.

We can do that with your help. Help extend the 01OS to run on new hardware, to connect with new peripherals like GPS and cameras, and add new locally running language models to unlock use-cases for this technology that no-one has even imagined yet.
We can do that with your help. Help extend the 01OS to run on new hardware, to connect with new peripherals like GPS and cameras, and add new locally running language models to unlock use-cases for this technology that no-one has even imagined yet.

In the coming months, we're going to release:

- [ ] Add support for Azure and PlayHT for fast latency
- [ ] An open-source language model for computer control
- [ ] A react-native app for your phone
- [ ] A hand-held device that runs fully offline.

4 changes: 2 additions & 2 deletions TASKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- [ ] Sends to describe API
- [ ] prints and returns description
- [ ] Llamafile for phi-2 + moondream
- [ ] test on rPi + Jetson (+android mini phone?)
- [ ] test on rPi + Jetson (+android mini phone?)

**OS**

Expand Down Expand Up @@ -66,7 +66,7 @@

**Hardware**

- [ ] (Hardware and software) Get the 01OS working on the **Jetson** or Pi. Pick one to move forward with.
- [ ] (Hardware and software) Get the 01OS working on the **Jetson** or Pi. Pick one to move forward with.
- [ ] Connect the Seeed Sense (ESP32 with Wifi, Bluetooth and a mic) to a small DAC + amplifier + speaker.
- [ ] Connect the Seeed Sense to a battery.
- [ ] Configure the ESP32 to be a wireless mic + speaker for the Jetson or Pi.
Expand Down
6 changes: 3 additions & 3 deletions docs/client/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ poetry run 01 --client

### Flags

- `--client`
- `--client`
Run client.

- `--client-type TEXT`
Specify the client type.
- `--client-type TEXT`
Specify the client type.
Default: `auto`.
66 changes: 33 additions & 33 deletions docs/server/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,73 +44,73 @@ For more information, please read about <a href="/services/speech-to-text">speec

## CLI Flags

- `--server`
- `--server`
Run server.

- `--server-host TEXT`
Specify the server host where the server will deploy.
- `--server-host TEXT`
Specify the server host where the server will deploy.
Default: `0.0.0.0`.

- `--server-port INTEGER`
Specify the server port where the server will deploy.
- `--server-port INTEGER`
Specify the server port where the server will deploy.
Default: `10001`.

- `--tunnel-service TEXT`
Specify the tunnel service.
- `--tunnel-service TEXT`
Specify the tunnel service.
Default: `ngrok`.

- `--expose`
- `--expose`
Expose server to internet.

- `--server-url TEXT`
Specify the server URL that the client should expect.
Defaults to server-host and server-port.
- `--server-url TEXT`
Specify the server URL that the client should expect.
Defaults to server-host and server-port.
Default: `None`.

- `--llm-service TEXT`
Specify the LLM service.
- `--llm-service TEXT`
Specify the LLM service.
Default: `litellm`.

- `--model TEXT`
Specify the model.
- `--model TEXT`
Specify the model.
Default: `gpt-4`.

- `--llm-supports-vision`
- `--llm-supports-vision`
Specify if the LLM service supports vision.

- `--llm-supports-functions`
- `--llm-supports-functions`
Specify if the LLM service supports functions.

- `--context-window INTEGER`
Specify the context window size.
- `--context-window INTEGER`
Specify the context window size.
Default: `2048`.

- `--max-tokens INTEGER`
Specify the maximum number of tokens.
- `--max-tokens INTEGER`
Specify the maximum number of tokens.
Default: `4096`.

- `--temperature FLOAT`
Specify the temperature for generation.
- `--temperature FLOAT`
Specify the temperature for generation.
Default: `0.8`.

- `--tts-service TEXT`
Specify the TTS service.
- `--tts-service TEXT`
Specify the TTS service.
Default: `openai`.

- `--stt-service TEXT`
Specify the STT service.
- `--stt-service TEXT`
Specify the STT service.
Default: `openai`.

- `--local`
- `--local`
Use recommended local services for LLM, STT, and TTS.

- `--install-completion [bash|zsh|fish|powershell|pwsh]`
Install completion for the specified shell.
- `--install-completion [bash|zsh|fish|powershell|pwsh]`
Install completion for the specified shell.
Default: `None`.

- `--show-completion [bash|zsh|fish|powershell|pwsh]`
Show completion for the specified shell, to copy it or customize the installation.
- `--show-completion [bash|zsh|fish|powershell|pwsh]`
Show completion for the specified shell, to copy it or customize the installation.
Default: `None`.

- `--help`
- `--help`
Show this message and exit.
2 changes: 1 addition & 1 deletion docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@

.body {
font-weight: normal;
}
}
4 changes: 2 additions & 2 deletions hardware/light/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Please install first [PlatformIO](http://platformio.org/) open source ecosystem

```bash
cd software/source/clients/esp32/src/client/
```
```

And build and upload the firmware with a simple command:

```bash
pio run --target upload
```
```

## Wifi

Expand Down
2 changes: 1 addition & 1 deletion project_management/hardware/devices/jetson-nano/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

![](mac-share-internet-v2.png)

d. Now the Jetson should have connectivity!
d. Now the Jetson should have connectivity!
1 change: 0 additions & 1 deletion software/.cursorignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
_archive
__pycache__
.idea

2 changes: 1 addition & 1 deletion software/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ target-version = ['py311']
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
include_trailing_comma = true
Loading

0 comments on commit a40c804

Please sign in to comment.