Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
frdel committed Feb 8, 2025
2 parents 9ecf5b1 + 9fb3daf commit 2a9b30e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Empty file removed memory/default/.gitkeep
Empty file.
8 changes: 2 additions & 6 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,8 @@ def get_deepseek_chat(
dotenv.get_dotenv_value("DEEPSEEK_BASE_URL") or "https://api.deepseek.com"
)

model = ChatOpenAI(api_key=api_key, model=model_name, base_url=base_url, **kwargs) # type: ignore
# little hack for reasoning model's problem with temperature
if not "temperature" in kwargs:
model.temperature = None # type: ignore
return model

return ChatOpenAI(api_key=api_key, model=model_name, base_url=base_url, **kwargs) # type: ignore

# OpenRouter models
def get_openrouter_chat(
model_name: str,
Expand Down
10 changes: 5 additions & 5 deletions python/helpers/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,12 @@ def convert_out(settings: Settings) -> SettingsOutput:
"id": "agent_memory_subdir",
"title": "Memory Subdirectory",
"description": "Subdirectory of /memory folder to use for agent memory storage. Used to separate memory storage between different instances.",
"type": "select",
"type": "text",
"value": settings["agent_memory_subdir"],
"options": [
{"value": subdir, "label": subdir}
for subdir in files.get_subdirectories("memory", exclude="embeddings")
],
# "options": [
# {"value": subdir, "label": subdir}
# for subdir in files.get_subdirectories("memory", exclude="embeddings")
# ],
}
)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ langchain-groq==0.2.2
langchain-huggingface==0.1.2
langchain-mistralai==0.2.4
langchain-ollama==0.2.2
langchain-openai==0.2.14
langchain-openai==0.3.4
openai-whisper==20240930
lxml_html_clean==0.3.1
markdown==3.7
Expand Down

0 comments on commit 2a9b30e

Please sign in to comment.