mirror of
https://github.com/katanemo/plano.git
synced 2026-06-02 14:35:14 +02:00
add ability to override default values from config (#58)
This commit is contained in:
parent
9f3c845610
commit
3135ba8eae
5 changed files with 42 additions and 6 deletions
|
|
@ -5,8 +5,9 @@ from openai import OpenAI
|
|||
import gradio as gr
|
||||
|
||||
api_key = os.getenv("OPENAI_API_KEY")
|
||||
CHAT_COMPLETION_ENDPOINT = os.getenv("CHAT_COMPLETION_ENDPOINT", "https://api.openai.com/v1")
|
||||
|
||||
client = OpenAI(api_key=api_key)
|
||||
client = OpenAI(api_key=api_key, base_url=CHAT_COMPLETION_ENDPOINT)
|
||||
|
||||
def predict(message, history):
|
||||
history_openai_format = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue