- Dockerfile +2 -0
- app.py +2 -1
Dockerfile
CHANGED
|
@@ -6,5 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 6 |
COPY requirements.txt .
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
COPY . .
|
|
|
|
|
|
|
| 9 |
EXPOSE 7860
|
| 10 |
CMD ["python", "app.py"]
|
|
|
|
| 6 |
COPY requirements.txt .
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
COPY . .
|
| 9 |
+
# 创建持久化目录
|
| 10 |
+
RUN mkdir -p /data/memory /data/workspace
|
| 11 |
EXPOSE 7860
|
| 12 |
CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -48,7 +48,8 @@ def chat_with_hermes(message: str, history: list) -> str:
|
|
| 48 |
messages.append({"role": "assistant", "content": str(h[1])})
|
| 49 |
messages.append({"role": "user", "content": message})
|
| 50 |
resp = llm.chat.completions.create(
|
| 51 |
-
|
|
|
|
| 52 |
messages=messages,
|
| 53 |
max_tokens=1024,
|
| 54 |
temperature=0.7,
|
|
|
|
| 48 |
messages.append({"role": "assistant", "content": str(h[1])})
|
| 49 |
messages.append({"role": "user", "content": message})
|
| 50 |
resp = llm.chat.completions.create(
|
| 51 |
+
# model="meta/llama-3.1-8b-instruct",
|
| 52 |
+
model="minimaxai/minimax-m2.7",
|
| 53 |
messages=messages,
|
| 54 |
max_tokens=1024,
|
| 55 |
temperature=0.7,
|