Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature Request: #6131

Closed
Playgirlkaybraz11 opened this issue Jun 23, 2024 · 2 comments
Closed

🚀 Feature Request: #6131

Playgirlkaybraz11 opened this issue Jun 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Playgirlkaybraz11
Copy link

Playgirlkaybraz11 commented Jun 23, 2024

Describe the solution

export interface Env {
  // If you set another name in wrangler.toml as the value for 'binding',
  // replace "AI" with the variable name you defined.
  AI: Ai;
}

export default {
  async fetch(request, env): Promise<Response> {
    const response = await env.AI.run('@cf/meta/llama-3-8b-instruct', {
        prompt: "What is the origin of the phrase Hello, World"
      }
    );

    return new Response(JSON.stringify(response));
  },
} satisfies ExportedHandler<Env>;  

#5608 cloudflare/workerd#2366

@Playgirlkaybraz11 Playgirlkaybraz11 added the enhancement New feature or request label Jun 23, 2024
@threepointone
Copy link
Contributor

What is the feature request here? Not sure I understand what you want.

@threepointone
Copy link
Contributor

closing this issue, please file a new issue if you have more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants