This works if anyone searches this: ```js const openai = createOpenAICompatible({ name

This works if anyone searches this:

    const openai = createOpenAICompatible({
        name: 'cloudflare-gateway',
        headers: { "cf-aig-authorization": `Bearer ${process.env.CLOUDFLARE_AI_TOKEN}` },
        baseURL:`https://gateway.ai.cloudflare.com/v1/${process.env.CLOUDFLARE_ACCOUNT_ID}/${process.env.CLOUDFLARE_GATEWAY_NAME}/compat`,
        includeUsage: true,
        supportsStructuredOutputs: true
    });
Was this page helpful?