跳转到主要内容
POST
POST /admin/api/tokenizer-vocabs

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json

What to fetch, and what to point at it.

repo
string
必填

A Hugging Face repository id, owner/name.

filename
string | null

The file inside it; tokenizer.json when absent.

modelId
string | null

The catalog model whose vocabulary_file_id should point at the result. Absent leaves every model alone.

setAsDefault
boolean
默认值:false

Whether this also becomes the instance default, used by models that select no vocabulary of their own.

响应

Success

One stored vocabulary.

createdAtMs
integer<int64>
必填
fileId
string
必填
filename
string | null
必填
isDefault
boolean
必填

Whether it is the instance default.

models
string[]
必填

The catalog models that select it, by id.

sizeBytes
integer<int64>
必填