please tell me the files supported in cf/whisper, no files work for me
please tell me the files supported in cf/whisper, no files work for me
9/3/24, 10:13 AM

Standard models are large image models such as @cf/stabilityai/stable-diffusion-xl-base-1.0...It lists this model in the pricing, which is beta.
@cf/huggingface/distilbert-sst-2-int8 can seemingly only do sentiment classification.o1-mini

@cf/baai/bge-large-en-v1.5 but when I go to the Workers AI page in the dash, I just have the "Welcome" pagewidth & height of the image?

env is on cc.env.AI@cf/huggingface/distilbert-sst-2-int8o1-mini@cf/baai/bge-large-en-v1.5widthheightX [ERROR] TypeError: Cannot read properties of undefined (reading 'run')cc.env.AIconst validModel = ['gpt-4o-mini', 'gpt-4o-mini-2024-07-18', 'gpt-4o', 'gpt-4o-2024-08-06', 'gpt-3.5-turbo-0125', 'gpt-3.5-turbo-1106']; // NO o1-mini
export default class extends WorkerEntrypoint<Env> {
async fetch(request: Request): Promise<Response> {
const { model, messages }: any = await request.json();
return this.rpc(model, messages);
}
async rpc(_model: string, messages: Messages[], colo?: string): Promise<Response> {
const model = _model?.split('/')[1]; // slice prefix openai/
if (!model || !validModel.includes(model)) {
return new Response(JSON.stringify({ message: 'Invalid model' }), { status: 400 });
}
...
const aiPayload = {
model: model,
messages: messages,
max_tokens: 2048,
stream: true
}
...
const response = await fetch(cfGateway, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
},
body: JSON.stringify(aiPayload),
});