Giter VIP home page Giter VIP logo

zsh-ask-azure-openai's Introduction

zsh-ask-azure-openai

A lightweight Zsh plugin that serves as a ChatGPT API frontend, enabling you to interact with ChatGPT directly from the Zsh shell using only cURL and jq.

Screenshot 0.0.2-beta.png Screenshot ask-code

Changelog

  • Version 0.0.2-beta:
    • Works with Azure Open AI Service
    • Added error handling for AOI Rate limiting or parsing errors
    • Improved Readme/Install instructions

Installation

See INSTALL.md. or

sh ./install.sh

Pre-requisites

Please ensure you have the following:

  • An Azure Open AI service account with a deployed GPT-3.5 model.
  • The OpenAI Key and OpenAI URL for your Azure Open AI service deployment.

If you haven't set up an Azure Open AI service account and deployed the GPT-3.5 model, follow these steps:

  1. Sign in to the Azure portal at https://portal.azure.com.
  2. Create a new Azure Open AI resource. Learn how to create an Azure Open AI resource with this Microsoft Learn guide.
  3. Follow the instructions to deploy the GPT-3.5 model within your Azure Open AI service. Refer to the Microsoft Learn guide for detailed steps on deploying the GPT-3.5 model.

Retrieve the OpenAI Key and OpenAI URL from your Azure Open AI service account.

Install zsh shell if you haven't already:

sudo apt-get install zsh

Set it as your default shell: (optional)

chsh -s $(which zsh)

You can also install oh-my-zsh if you want to.

Make sure you have cURL and jq installed.

If you would like to have markdown rendering with option -m, glow is required (Recommend).

Usage

ask '<your prompt>'

Use -c for dialogue format communication (BETA)

ask -c

Use -m for markdown rendering (glow required)

ask -m

Use -h for more information.

ask -h

Use -d to turn on debug mode.

ask -d

zsh-ask-azure-openai's People

Contributors

pauldatta avatar licheam avatar

Stargazers

 avatar Aḥmad Gozali avatar

Forkers

aose-yuu

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.