Spaces:
Sleeping
Sleeping
Upload 164 files
Browse files
src/apis/controllers/destination_controller.py
CHANGED
|
@@ -20,7 +20,7 @@ from src.utils.logger import logger
|
|
| 20 |
async def destination_suggestion_controller(
|
| 21 |
question: str, user_id: str, top_k: int = 5
|
| 22 |
) -> List[Dict[str, Any]]:
|
| 23 |
-
url = f"https://abao77-
|
| 24 |
if user_id:
|
| 25 |
url += f"/{user_id}"
|
| 26 |
logger.info("Call recommend with user_id")
|
|
|
|
| 20 |
async def destination_suggestion_controller(
|
| 21 |
question: str, user_id: str, top_k: int = 5
|
| 22 |
) -> List[Dict[str, Any]]:
|
| 23 |
+
url = f"https://abao77-triventure-personalize.hf.space/model/get_destinations_list_by_question/{question}/{top_k}"
|
| 24 |
if user_id:
|
| 25 |
url += f"/{user_id}"
|
| 26 |
logger.info("Call recommend with user_id")
|
src/langgraph/langchain/__pycache__/llm.cpython-311.pyc
CHANGED
|
Binary files a/src/langgraph/langchain/__pycache__/llm.cpython-311.pyc and b/src/langgraph/langchain/__pycache__/llm.cpython-311.pyc differ
|
|
|
src/langgraph/langchain/llm.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
|
|
|
| 2 |
# from langchain_openai import ChatOpenAI
|
| 3 |
|
| 4 |
# llm = ChatGoogleGenerativeAI(
|
|
@@ -7,7 +8,7 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|
| 7 |
# max_retries=2,
|
| 8 |
# )
|
| 9 |
llm = ChatGoogleGenerativeAI(
|
| 10 |
-
model="gemini-2.0-flash",
|
| 11 |
temperature=0.1,
|
| 12 |
# max_retries=2,
|
| 13 |
)
|
|
@@ -20,4 +21,4 @@ llm_flash = ChatGoogleGenerativeAI(
|
|
| 20 |
# model="gpt-4o-mini",
|
| 21 |
# temperature=0.1,
|
| 22 |
# # max_retries=2,
|
| 23 |
-
# )
|
|
|
|
| 1 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 2 |
+
|
| 3 |
# from langchain_openai import ChatOpenAI
|
| 4 |
|
| 5 |
# llm = ChatGoogleGenerativeAI(
|
|
|
|
| 8 |
# max_retries=2,
|
| 9 |
# )
|
| 10 |
llm = ChatGoogleGenerativeAI(
|
| 11 |
+
model="gemini-2.0-flash-001",
|
| 12 |
temperature=0.1,
|
| 13 |
# max_retries=2,
|
| 14 |
)
|
|
|
|
| 21 |
# model="gpt-4o-mini",
|
| 22 |
# temperature=0.1,
|
| 23 |
# # max_retries=2,
|
| 24 |
+
# )
|