fix prompt
This commit is contained in:
@@ -413,12 +413,12 @@ function sessionContextContent(session) {
|
||||
// vision 能力随会话上下文告知 AI:不支持时读图只能拿到元信息,免得白跑一轮 read_file
|
||||
const bound = session.model_id && cfg.models.find(m => m.id === session.model_id);
|
||||
const visionLine = bound
|
||||
? (bound.vision ? '支持(可直接读取图片内容)' : '不支持(无法回传图片内容;读图仅返回元信息,需要图内文字请用 OCR 等工具)')
|
||||
: '未知(模型绑定后生效;默认按不支持处理)';
|
||||
? (bound.vision ? '支持' : '不支持')
|
||||
: '未知';
|
||||
return [
|
||||
'【会话上下文】以下信息由系统自动注入,无需回复本条消息。',
|
||||
'【会话上下文】由系统自动注入,无需回复本消息',
|
||||
'- 当前日期:' + dateStr + '(UTC)',
|
||||
'- 任务目录:' + taskDirOf(session.id) + '(本会话的文件与终端操作都在此目录内)',
|
||||
'- 任务目录:' + taskDirOf(session.id),
|
||||
'- 当前模型:' + model,
|
||||
'- 图片(vision):' + visionLine,
|
||||
].join('\n');
|
||||
|
||||
@@ -98,6 +98,7 @@
|
||||
<div id="delete-modal" class="modal-overlay hidden" onclick="if(event.target===this)ui.closeDelete()">
|
||||
<div class="modal">
|
||||
<h3>删除会话</h3>
|
||||
<br>
|
||||
<div class="modal-text" id="delete-modal-text">确定删除该会话?</div>
|
||||
<label class="del-dir"><input type="checkbox" id="del-dir-check" checked>同时删除任务目录(文件将不可恢复)</label>
|
||||
<br>
|
||||
|
||||
@@ -45,3 +45,5 @@ You have a dedicated working directory for each conversation. All file paths in
|
||||
- Runs in a Docker container. File access is limited to the working directory and temp directories.
|
||||
- Python: use `python3`. To install Python packages: `pip3 install --break-system-packages <pkg>`.
|
||||
- System packages: `apt-get update -y && apt-get install -y <pkg>`.
|
||||
- Preinstalled system tools: curl, git, python3, pip3, ripgrep, procps, unzip, wget, jq, zip, tree, file, build-essential.
|
||||
- Preinstalled Python packages: requests, beautifulsoup4, lxml, pandas, numpy, openpyxl, python-docx, reportlab, matplotlib, Pillow, pypdf, python-dateutil.
|
||||
|
||||
Reference in New Issue
Block a user