更新
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user