Closed ethanchancc18 closed 1 year ago
tkm, err := tiktoken.EncodingForModel(Model) if err != nil { fmt.Println(fmt.Errorf("EncodingForModel: %v", err)) return }
我在执行这个model gpt-3.5-turbo-0301 报错找不到encoding ,我看了源码MODEL_TO_ENCODING没有这个模型
衍生模型的支持之前没发tag支持,在终端执行 go get -d github.com/pkoukk/tiktoken-go或者go get -d github.com/pkoukk/tiktoken-go@v0.1.1 相关支持代码在MODEL_PREFIX_TO_ENCODING定义中
go get -d github.com/pkoukk/tiktoken-go
go get -d github.com/pkoukk/tiktoken-go@v0.1.1
MODEL_PREFIX_TO_ENCODING
我在执行这个model gpt-3.5-turbo-0301 报错找不到encoding ,我看了源码MODEL_TO_ENCODING没有这个模型