Spaces:
Sleeping
Sleeping
MarkChen1214
commited on
Commit
•
d444e1f
1
Parent(s):
b7666f5
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ MAX_INPUT_LENGTH = 5000
|
|
36 |
|
37 |
def chat_with_openai(model_name, system_message, user_message, temperature=0.5, max_tokens=1024, top_p=0.5):
|
38 |
client = OpenAI(
|
39 |
-
base_url=API_URL,
|
40 |
api_key=TOKEN
|
41 |
)
|
42 |
|
|
|
36 |
|
37 |
def chat_with_openai(model_name, system_message, user_message, temperature=0.5, max_tokens=1024, top_p=0.5):
|
38 |
client = OpenAI(
|
39 |
+
base_url=os.path.join(API_URL, "v1/"),
|
40 |
api_key=TOKEN
|
41 |
)
|
42 |
|