Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EncodingForModel: no encoding for model gpt-3.5-turbo-0301 #12

Closed
ethanchancc18 opened this issue Apr 19, 2023 · 1 comment
Closed

EncodingForModel: no encoding for model gpt-3.5-turbo-0301 #12

ethanchancc18 opened this issue Apr 19, 2023 · 1 comment

Comments

@ethanchancc18
Copy link

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没有这个模型

@pkoukk
Copy link
Owner

pkoukk commented Apr 19, 2023

衍生模型的支持之前没发tag支持,在终端执行
go get -d github.com/pkoukk/tiktoken-go或者go get -d github.com/pkoukk/tiktoken-go@v0.1.1
相关支持代码在MODEL_PREFIX_TO_ENCODING定义中

@pkoukk pkoukk closed this as completed Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants