Update main.py
Browse files
main.py
CHANGED
@@ -252,7 +252,8 @@ async def start():
|
|
252 |
if not contextChat:
|
253 |
contextChat = "Il n'y a pas de contexte."
|
254 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
255 |
-
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
|
256 |
|
257 |
model = HuggingFaceEndpoint(
|
258 |
repo_id=repo_id,
|
@@ -1168,8 +1169,8 @@ async def API_connexion(romeListArray):
|
|
1168 |
@cl.step(type="llm")
|
1169 |
async def IA():
|
1170 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
1171 |
-
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
1172 |
-
|
1173 |
|
1174 |
llm = HuggingFaceEndpoint(
|
1175 |
repo_id=repo_id, max_new_tokens=5000, temperature=1.0, task="text2text-generation", streaming=True
|
@@ -1229,7 +1230,8 @@ async def setup_agent(settings):
|
|
1229 |
contextChat = "Il n'y a pas de contexte."
|
1230 |
|
1231 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
1232 |
-
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
|
1233 |
|
1234 |
model = HuggingFaceEndpoint(
|
1235 |
repo_id=repo_id,
|
|
|
252 |
if not contextChat:
|
253 |
contextChat = "Il n'y a pas de contexte."
|
254 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
255 |
+
#repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
256 |
+
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
257 |
|
258 |
model = HuggingFaceEndpoint(
|
259 |
repo_id=repo_id,
|
|
|
1169 |
@cl.step(type="llm")
|
1170 |
async def IA():
|
1171 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
1172 |
+
#repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
1173 |
+
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
1174 |
|
1175 |
llm = HuggingFaceEndpoint(
|
1176 |
repo_id=repo_id, max_new_tokens=5000, temperature=1.0, task="text2text-generation", streaming=True
|
|
|
1230 |
contextChat = "Il n'y a pas de contexte."
|
1231 |
|
1232 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
1233 |
+
#repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
1234 |
+
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
1235 |
|
1236 |
model = HuggingFaceEndpoint(
|
1237 |
repo_id=repo_id,
|