Update main.py
Browse files
main.py
CHANGED
@@ -430,7 +430,8 @@ async def start():
|
|
430 |
categorie = cl.user_session.set("categorie", os.environ['PINECONE_API_KEYESCO'])
|
431 |
|
432 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
433 |
-
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
|
|
434 |
|
435 |
model = HuggingFaceEndpoint(
|
436 |
repo_id=repo_id,
|
@@ -858,8 +859,8 @@ async def connexion_vector_database():
|
|
858 |
@cl.step(type="llm")
|
859 |
async def IA():
|
860 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
861 |
-
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
862 |
-
|
863 |
llm = HuggingFaceEndpoint(
|
864 |
repo_id=repo_id, max_new_tokens=5000, temperature=1.0, task="text2text-generation", streaming=True
|
865 |
)
|
@@ -898,8 +899,8 @@ async def setup_agent(settings):
|
|
898 |
contextChat = "Il n'y a pas de contexte."
|
899 |
|
900 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
901 |
-
repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
902 |
-
|
903 |
model = HuggingFaceEndpoint(
|
904 |
repo_id=repo_id,
|
905 |
max_new_tokens=3600,
|
|
|
430 |
categorie = cl.user_session.set("categorie", os.environ['PINECONE_API_KEYESCO'])
|
431 |
|
432 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
433 |
+
#repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
434 |
+
repo_id = "meta-llama/Llama-3.2-3B-Instruct"
|
435 |
|
436 |
model = HuggingFaceEndpoint(
|
437 |
repo_id=repo_id,
|
|
|
859 |
@cl.step(type="llm")
|
860 |
async def IA():
|
861 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
862 |
+
#repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
863 |
+
repo_id = "meta-llama/Llama-3.2-3B-Instruct"
|
864 |
llm = HuggingFaceEndpoint(
|
865 |
repo_id=repo_id, max_new_tokens=5000, temperature=1.0, task="text2text-generation", streaming=True
|
866 |
)
|
|
|
899 |
contextChat = "Il n'y a pas de contexte."
|
900 |
|
901 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
902 |
+
#repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
903 |
+
repo_id = "meta-llama/Llama-3.2-3B-Instruct"
|
904 |
model = HuggingFaceEndpoint(
|
905 |
repo_id=repo_id,
|
906 |
max_new_tokens=3600,
|