chatGPT webapp

Build a local version of chatGPT with openAI API, python gradio.

source

app

 app (IP, Port=5010, model_engine='gpt-3.5-turbo')

Launch a local web server of chatGPT

ES: –IP your server IP –Port the port you want to use | default=5010 –model_engine the LLM engine you use from openAI | default=‘gpt-3.5-turbo’


source

generate_response

 generate_response (model_engine, messages)

Deliver the messages to openAI and get a response

# #| export
# if __name__ == "__main__":
#     fire.Fire(app)