As the term token in the context of generative AI refers to text/data units, calling tokens that allow to access inference endpoints "inference token" might be confusing. For that reason, we consistently refer to such tokens as api keys.
13 lines
271 B
Ruby
13 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Serializers::InferenceApiKey < Serializers::Base
|
|
def self.serialize_internal(it, options = {})
|
|
{
|
|
id: it.ubid,
|
|
key: it.key,
|
|
created_at: it.created_at,
|
|
path: "/inference-api-key/#{it.ubid}"
|
|
}
|
|
end
|
|
end
|