MarkChen1214
commited on
Commit
•
30087cd
1
Parent(s):
b85bdbd
chore: Update base URL in chat_with_openai function
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 |
|