Closed trbedwards closed 10 months ago
How many tokens are in output.json? The same issue has occurred to me with a large JSON (over 4k tokens).
run cat output.json | sgpt --model gpt-3.5-turbo-16k "Please print the list of model ids"
and it should work. That JSON file has approximately 8940 tokens, to much for the gpt-3.5-turbo
model that can only take 4k tokens.
Closing this issue due to its age and lack of similar reports/requests from other users.
I wanted to use sgpt to list the OpenAI models available to me (a bit meta, I know!). I directly queried the OpenAI API to ask for the list of models, which I piped to a json file. I then attempted to pipe this json file to sgpt, asking it to summarise by printing the list of model IDs. However, when I try this, I get an HTTPError.
Here's how to reproduce the problem:
I get the following error:
I tried the sgpt command with and without the
-s
, but I get the same error. I've confirmed that sgpt is still working normally by runningsgpt "mass of sun"
for example, and that works fine.