mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
chore: uptick
This commit is contained in:
parent
b597123489
commit
a435c7274a
1 changed files with 9 additions and 3 deletions
|
|
@ -1314,9 +1314,15 @@ export function App({ gw }: { gw: GatewayClient }) {
|
||||||
return true
|
return true
|
||||||
|
|
||||||
case 'personality':
|
case 'personality':
|
||||||
rpc('config.set', { key: 'personality', value: arg }).then((r: any) =>
|
if (arg) {
|
||||||
sys(`personality: ${r.value || 'default'}`)
|
rpc('config.set', { key: 'personality', value: arg }).then((r: any) =>
|
||||||
)
|
sys(`personality: ${r.value || 'default'}`)
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
gw.request('slash.exec', { command: 'personality', session_id: sid })
|
||||||
|
.then((r: any) => sys(r?.output || '(no output)'))
|
||||||
|
.catch(() => sys('personality command failed'))
|
||||||
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue