fix webui url and dependencies (#66)

This commit is contained in:
Adil Hafeez 2024-09-19 17:48:50 -07:00 committed by GitHub
parent 2cd5ec5adf
commit 3215d81e58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 11 additions and 10 deletions

View file

@ -1,9 +1,12 @@
import os
from openai import OpenAI
import gradio as gr
from dotenv import load_dotenv
load_dotenv()
OPEN_API_KEY=os.getenv("OPENAI_API_KEY")
CHAT_COMPLETION_ENDPOINT = os.getenv("CHAT_COMPLETION_ENDPOINT", "https://api.openai.com/v1")
CHAT_COMPLETION_ENDPOINT = os.getenv("CHAT_COMPLETION_ENDPOINT")
MODEL_NAME = os.getenv("MODEL_NAME", "gpt-3.5-turbo")
client = OpenAI(api_key=OPEN_API_KEY, base_url=CHAT_COMPLETION_ENDPOINT)