Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/data/post/domux-smart-home-command-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Domux **不依赖固定的设备白名单**。模型通过语义理解来处理
对于包含多个动作的复合指令,Domux 会输出多行槽位:

```
输入:打开二楼主卧的主灯,亮度 80%,色温 4000K,颜色蓝色,模式阅读
输入:Turn on the main light in the master bedroom on the second floor, set brightness to 80%, color temperature to 4000K, color to blue, and switch to reading mode

输出:
turnOn|Light|*|*|*|Master Bedroom|Second Floor
Expand Down Expand Up @@ -122,7 +122,7 @@ client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

response = client.chat.completions.create(
model="domux",
messages=[{"role": "user", "content": "把客厅灯调到 80% 亮度"}],
messages=[{"role": "user", "content": "Set the living room light brightness to 80%"}],
temperature=0.0
)
print(response.choices[0].message.content)
Expand Down
Loading