Giter VIP home page Giter VIP logo

orcish-ai-nextjs-framework's Introduction

Orcish AI Next.js Framework

orcish-ai-nextjs-framework

Overview

The Orcish AI Next.js Framework is a powerful tool that leverages the capabilities of OpenAI API, OpenAI's advanced language models, to integrate AI functionalities seamlessly into your Next.js applications. With this framework, you can easily harness the power of AI to generate text, images, and text to speech based on your specified input.

Getting Started

Installation

To begin, install the required dependencies using the following command:

pnpm i

Configuration

Create a copy of the provided .env.example file and name it .env. Fill in the required OpenAI API Key in the newly created .env file, and Clerk variables if you're going to use authentication:

cp .env.example .env

OPENAI_API_KEY=your_openai_api_key

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up

Make sure to replace placeholder values with your actual API keys, and keep them safe!

Development Server

After installing the dependencies, and adding configuration variables run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

Usage Guide

If you want to test out Orcish AI Next.js Framework without authentication, you can just put <AISelector /> component on app/page.tsx page.

Text Completion:

  1. Locate Input Field: On the index page of our application, you'll find an input field.

  2. Insert Subject: Enter your desired subject into the input field.

  3. Choose AI Model (Optional): If desired, you can select the AI model for text completion. By default it's going to be gpt-3.5-turbo.

  4. Generate Text: Click on the Get Completion button. This action prompts the framework to generate text based on your input.

Image Generation:

  1. Switch Mode: To switch to image generation mode, click on the toggle, and click "Image".

  2. Choose AI Image Model (Optional): If desired, you can select the Image AI model for image generation. By default it's going to be dall-e-3.

  3. Get Image: Once in "Image" mode, click on the Get Image button. The AI will then generate an image based on your input.

Text-to-Speech:

  1. Switch Mode: Click on the toggle again to switch to "Text to Speech" mode.

  2. Choose AI Voice Model (Optional): If desired, you can select the Voice AI model for voice generation. By default it's going to be tts-1.

  3. Choose AI Voice (Optional): If desired, you can select the voice for voice generation. By default it's going to be echo.

  4. Generate Voice Output: With the mode set to "Text to Speech," click on the Get Voice Output button. This action will invoke the AI to generate an audio file that you can play.

The Orcish AI Next.js Framework provides a seamless integration of AI capabilities into your Next.js applications, offering a versatile and user-friendly experience for generating both text and images.

orcish-ai-nextjs-framework's People

Contributors

theorcdev avatar

Stargazers

 avatar Muhammet Ilgaz avatar PostPcEra avatar  avatar Jiwoong Moon avatar Mohamed Ramadan avatar Cybermatica avatar Bruno Carneiro avatar Akash Biswas avatar Hashibul avatar Sabir Hassan avatar Sangram avatar Lucas Assis Vieira avatar Dhruvil S Shah avatar Animesh Rawat avatar Lê Văn Duy avatar hoangbui avatar Dâmocles Gil Marçal  avatar Kitimbo Rino avatar Sourav Paul avatar Eric Cheah avatar John Azuka avatar Віталій Копилов avatar CHAO-LI-CHEN avatar Jon Insley avatar NYANDA MARCO avatar Nabeel Faheem avatar Raka Maheka Auramuwahid avatar Mehedi Hasan Siam avatar CliveL avatar Hayato Akatsuka avatar Mohamed Shahawy avatar Adrian avatar Muhaemin Iskandar avatar  avatar Wemersive, Inc avatar Mehedi Hasan Siam avatar Vicheka avatar Phillip Novess avatar Himanshu Chanda avatar Ryan avatar Niketan jha avatar Khalil Camargo Packer avatar Hardik Shah avatar Liam Ellis avatar SIRAWICH VOUNGCHUY avatar Binler avatar  avatar uitspitss avatar Bilal GOKDAG avatar Huy Nguyen Quang avatar Omar Elhassani Alaoui avatar rohit sohlot avatar Aymen avatar Fernando Bold avatar  avatar Navaneeth avatar Hans Piña avatar Jimmy Briggs avatar Julie avatar Yusuf Samet YAMAÇ avatar Ahsan Raza avatar Chinzoe avatar Aswin VB avatar Reinier avatar Trần Ngọc Thắng avatar Jackson Ricardo Schroeder avatar Kyle L. McGregor avatar  avatar Darren Bennett avatar Jude Okorie avatar Emmanuel Oreoluwa avatar Abdelrahman Shaheen avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.