Skip to content

Commit 68c8f2d

Browse files
committed
Merge branch 'test' into feat/mem-search-rank
2 parents 83d8824 + 5285829 commit 68c8f2d

File tree

26 files changed

+401
-390
lines changed

26 files changed

+401
-390
lines changed

.github/workflows/python-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ on:
1212
- "main"
1313
- "dev"
1414
- "feat/*"
15+
- "test"
1516
pull_request:
1617
branches:
1718
- "main"
1819
- "dev"
1920
- "feat/*"
21+
- "test"
2022

2123
jobs:
2224
build:

poetry.lock

Lines changed: 19 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dependencies = [
4242
"tenacity (>=9.1.2,<10.0.0)", # Error handling and retrying library
4343
"fastapi[all] (>=0.115.12,<0.116.0)", # Web framework for building APIs
4444
"sqlalchemy (>=2.0.41,<3.0.0)", # SQL toolkit
45+
"pymysql (>=1.1.0,<2.0.0)", # MySQL Python driver
4546
"scikit-learn (>=1.7.0,<2.0.0)", # Machine learning
4647
"fastmcp (>=2.10.5,<3.0.0)",
4748
"python-dateutil (>=2.9.0.post0,<3.0.0)",
@@ -76,6 +77,11 @@ mem-scheduler = [
7677
"pika (>=1.3.2,<2.0.0)", # RabbitMQ client
7778
]
7879

80+
# MemUser (MySQL support)
81+
mem-user = [
82+
"pymysql (>=1.1.0,<2.0.0)", # MySQL client for SQLAlchemy
83+
]
84+
7985
# MemReader
8086
mem-reader = [
8187
"chonkie (>=1.0.7,<2.0.0)", # Sentence chunking library
@@ -90,6 +96,7 @@ all = [
9096
"schedule (>=1.2.2,<2.0.0)",
9197
"redis (>=6.2.0,<7.0.0)",
9298
"pika (>=1.3.2,<2.0.0)",
99+
"pymysql (>=1.1.0,<2.0.0)",
93100
"chonkie (>=1.0.7,<2.0.0)",
94101
"markitdown[docx,pdf,pptx,xls,xlsx] (>=0.1.1,<0.2.0)",
95102

@@ -158,6 +165,10 @@ python-dotenv = "^1.1.1"
158165
langgraph = "^0.5.1"
159166
langmem = "^0.0.27"
160167

168+
169+
[tool.poetry.group.mem-user.dependencies]
170+
pymysql = "^1.1.2"
171+
161172
[[tool.poetry.source]]
162173
name = "mirrors"
163174
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"

src/memos/api/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class APIConfig:
2121
def get_openai_config() -> dict[str, Any]:
2222
"""Get OpenAI configuration."""
2323
return {
24-
"model_name_or_path": os.getenv("MOS_OPENAI_MODEL", "gpt-4o-mini"),
24+
"model_name_or_path": os.getenv("MOS_CHAT_MODEL", "gpt-4o-mini"),
2525
"temperature": float(os.getenv("MOS_CHAT_TEMPERATURE", "0.8")),
2626
"max_tokens": int(os.getenv("MOS_MAX_TOKENS", "1024")),
2727
"top_p": float(os.getenv("MOS_TOP_P", "0.9")),

src/memos/api/context/context.py

Lines changed: 0 additions & 147 deletions
This file was deleted.

src/memos/api/context/context_thread.py

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)