Skip to content

Jikjii/AI-writing-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Bunjo

Technologies

  • Typescript
  • Remix
  • Prisma
  • OPENAI API
 try {
    const response = await fetch(
      "https://api.openai.com/v1/engines/text-davinci-002/completions",
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
          Authorization: `Bearer ${process.env.OPENAI_KEY}`,
        },
        body: JSON.stringify({
          prompt: body.prompt,
          max_tokens: Number(body.tokens),
          temperature: 0.9,
          top_p: 1,
          frequency_penalty: 0.52,
          presence_penalty: 0.9,
          n: 1,
          best_of: 2,
          stream: false,
          logprobs: null,
        }),
      }
    );

Next Implementations

AI_Screenshot_1

AI_SCREENSHOT_2

AI_SCREENSHOT_3