Error using --model argument with gpt-4
LiamK opened this issue · 2 comments
When using the --model parameter with gpt-4 (or gpt-4-0613 as in the example below), an error is thrown.
cli/translator.mjs --from English --to Spanish --file ~/Movies/Rendered/BlueOrangesRetimed.srt --model 'gpt-4-0613' [CLI] Assume SRT file /Users/liam/Movies/Rendered/BlueOrangesRetimed.srt [CLI] Progress already completed /Users/liam/Movies/Rendered/BlueOrangesRetimed.srt.progress_Spanish.csv [CLI] Overwriting /Users/liam/Movies/Rendered/BlueOrangesRetimed.srt.progress_Spanish.csv [CLI] Overwriting /Users/liam/Movies/Rendered/BlueOrangesRetimed.srt.out_Spanish.srt [Translator] System Instruction: Translate English to Spanish [Error_TranslationPrompt] 2023-07-13T12:55:54.232Z Status undefined Error socket hang up undefined
However, it works fine specifying gpt-3.5-turbo, or letting it default to that.
Another application appears to be able to access the gpt-4 API.
It just started working for me, too.
Ah, apparently the --stream parameter is necessary. Didn't realize that.
Thanks for the quick reply.