Giter VIP home page Giter VIP logo

openai-client's Introduction

Managed ID Version is here

Simple ChatGPT client

It is a Python application that serves as the frontend for Azure Open AI's ChatGPT. It is assumed to be deployed on Azure App Service.

image

1. Deploy App Service

Deploy Python Stack Web Apps

2.Deploy this application

Web Apps > Deployment Center > Setting

image

And click Save button.

3.Set startup command

Web Apps > Configuration > General settings > Startup Command

python -m streamlit run app.py --server.port 8000 --server.address 0.0.0.0

image

And click Save button.

4. Set Enviroment variables

Web Apps > Configuration > Application settings

  • OPENAI_API_ENDPOINT : Your Azure Open AI API endpoint URL
  • OPENAI_API_KEY : Your Azure Open AI API key
  • OPENAI_API_VERSION : API Vearsion (2023-03-15-preview)
  • OPENAI_ENGINE : The model name you deployed

image

And click Save button.

Access and Enjoy your private ChatGPT!

If you want to set up authentication to client app, Please refer to following document. https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service

openai-client's People

Contributors

07jp27 avatar

Stargazers

 avatar Ruka Sakurai avatar

Watchers

 avatar

Forkers

marumaru1019

openai-client's Issues

openaiライブラリのバージョン

@07JP27
すみません、ご存じの通りopenaiライブラリが1.xで書き方が変わってしまったので、どちらかの対応をお願いしてもよろしいでしょうか (いやお前が書けよという話ですが・・・)

  • requirements.txt を openai==0.28.1 にする
  • app.pyを1.xに書き換え (同時にrequirements.txtもバージョン固定する)

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.