This commit is contained in:
Your Name
2026-08-03 10:00:05 +08:00
parent 0fb03d0bca
commit 01729b1e0b
109 changed files with 7577 additions and 1153 deletions
@@ -93,6 +93,14 @@ class Conversation extends BaseApi
} else {
$data['model_id'] = (int) $mid;
}
$currentModelId = $conversation->model_id === null
? null
: (int) $conversation->model_id;
if ($data['model_id'] !== $currentModelId) {
// Dify conversation_id 只属于创建它的应用/模型;切换模型后不可复用。
$data['external_conversation_id'] = null;
}
}
if (empty($data)) {