---
title: UpdateEngineInfo接口
description: "下发切换身份请求。"
url: https://www.hiascend.com/document/detail/zh/mindie/latest/mindiellm/llmdev/mindie_llm0095.html
sourcePath: /source/zh/mindie/310/mindiellm/llmdev/mindie_llm0095.html
indexId: 5f4ecf60d8680ab924fdd6a3fae7995ea0f3c90be08abd6abc70ec9aa710761a58
---
# UpdateEngineInfo接口

#### 接口功能

下发切换身份请求。


#### 接口格式

```
bool UpdateEngineInfo(std::shared_ptr<mindie_llm::InferRequest> &runtimeRequest, bool isForceRelease);
```


#### 接口参数

| 参数 | 是否必选 | 说明 | 取值要求 |
| --- | --- | --- | --- |
| runtimeRequest | 是 | 切换身份请求。 | std::shared\_ptr<mindie\_llm::InferRequest>。 |
| isForceRelease | 是 | 是否强制释放节点间连接。 | bool。 |


#### 使用样例

构造一个LlmManager实例，并下发切换身份请求。

```
mindie_llm::GetRequestsCallback getRequestCallback;
mindie_llm::SendResponsesCallback sendResponsesCallback;
mindie_llm::ControlSignalCallback stopSignalCallback;
mindie_llm::LlmManagerStatsCallback statsCallback;
mindie_llm::SendStatusResponseCallback sendStatusCallback;
const std::string llmConfigPath;
std::map<std::string, std::string> ipInfo;
std::shared_ptr<mindie_llm::LlmManager> llmManager = std::make_shared<mindie_llm::LlmManager>(llmConfigPath, getRequestCallback, sendResponsesCallback, stopSignalCallback, statsCallback, sendStatusCallback,ipInfo);
std::shared_ptr<mindie_llm::InferRequest> request;
llmManager->UpdateEngineInfo(request, false);
```


#### 返回值

bool类型。
