Created
May 15, 2024 08:25
-
-
Save fwartner/00cbfa7151803a84ed021ca4663a908c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
async fetch(request, env) { | |
const body = await request.json(); | |
const response = await env.AI.run("@cf/meta/llama-3-8b-instruct", body); | |
return new Response(JSON.stringify(response)); | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment