Spaces:
Runtime error
Runtime error
JunchuanYu
commited on
Commit
·
afb4d46
1
Parent(s):
0f0c6c1
Update chat_func.py
Browse files- chat_func.py +0 -4
chat_func.py
CHANGED
@@ -9,11 +9,8 @@ import requests
|
|
9 |
|
10 |
from tqdm import tqdm
|
11 |
|
12 |
-
from presets import *
|
13 |
-
# from llama_func import *
|
14 |
from utils import *
|
15 |
|
16 |
-
# logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s")
|
17 |
|
18 |
if TYPE_CHECKING:
|
19 |
from typing import TypedDict
|
@@ -25,7 +22,6 @@ if TYPE_CHECKING:
|
|
25 |
|
26 |
initial_prompt = "You are a helpful assistant."
|
27 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
28 |
-
TEMPLATES_DIR = "templates"
|
29 |
|
30 |
def get_response(
|
31 |
openai_api_key, system_prompt, history, stream, selected_model
|
|
|
9 |
|
10 |
from tqdm import tqdm
|
11 |
|
|
|
|
|
12 |
from utils import *
|
13 |
|
|
|
14 |
|
15 |
if TYPE_CHECKING:
|
16 |
from typing import TypedDict
|
|
|
22 |
|
23 |
initial_prompt = "You are a helpful assistant."
|
24 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
|
|
25 |
|
26 |
def get_response(
|
27 |
openai_api_key, system_prompt, history, stream, selected_model
|