Skip to content

Commit

Permalink
actions/checkout@v4 (#60)
Browse files Browse the repository at this point in the history
* actions/checkout@v4

* Correct readme
  • Loading branch information
mikesmallhelp authored Nov 18, 2024
1 parent 136bf82 commit 6f88d3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ jobs:
run-unit-tests-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
run-unit-tests-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
run-e2e-tests-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Playwright
run: npm install && npx playwright install --with-deps
- name: Build and install wacat command
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: macos-latest
needs: run-e2e-tests-ubuntu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Playwright
run: npm install && npx playwright install --with-deps
- name: Build and install wacat command
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ wait for the limit to reset, and then rerun wacat.

#### Managing OpenAI token usage

If your queries exceed the API's tokens-per-minute limit, you can use the MAX_PAGE_CONTENT_CHARS .env variable (see before) to control the number of characters wacat sends per page to the API for analysis.
If your queries exceed the API's tokens-per-minute limit, you can use the MAX_PAGE_CONTENT_CHARS .env variable (see above) to control the number of characters wacat sends per page to the API for analysis.

The base prompt contains approximately 1600 characters. For example, if you set MAX_PAGE_CONTENT_CHARS to 400, the total prompt size will be around 2000 characters, or roughly 500 tokens (1 token is approximately 4 characters in English). The response will always consist of a single token, so primarily manage the prompt size.

Expand Down

0 comments on commit 6f88d3b

Please sign in to comment.