mirror of
https://github.com/Hopiu/llm.git
synced 2026-05-16 09:43:12 +00:00
parent
0cb9a2ea68
commit
439f7951c3
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ curl -s https://www.nytimes.com/ \
|
|||
|
||||
## ttok
|
||||
|
||||
[ttok](https://github.com/simon/ttok) is a command-line tool for counting OpenAI tokens. You can use it to check if input is likely to fit in the token limit for GPT 3.5 or GPT4:
|
||||
[ttok](https://github.com/simonw/ttok) is a command-line tool for counting OpenAI tokens. You can use it to check if input is likely to fit in the token limit for GPT 3.5 or GPT4:
|
||||
|
||||
```bash
|
||||
cat my-file.txt | ttok
|
||||
|
|
@ -46,4 +46,4 @@ Here's how to use it to find all functions that match `test*csv*` and use those
|
|||
symbex 'test*csv*' | \
|
||||
llm --system 'based on these tests guess what this tool does'
|
||||
```
|
||||
For more examples see [symbex: search Python code for functions and classes, then pipe them into a LLM](https://simonwillison.net/2023/Jun/18/symbex/).
|
||||
For more examples see [symbex: search Python code for functions and classes, then pipe them into a LLM](https://simonwillison.net/2023/Jun/18/symbex/).
|
||||
|
|
|
|||
Loading…
Reference in a new issue