File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
multimodal/omni-tars/omni-agent Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,42 @@ export default {
4747 dbName : process . env . MONGO_DB_NAME ,
4848 } ,
4949 } ,
50+ runtimeSettings : {
51+ schema : {
52+ type : 'object' ,
53+ properties : {
54+ agentMode : {
55+ type : 'string' ,
56+ title : 'Agent Mode' ,
57+ enum : [ 'omni' , 'gui' , 'game' ] ,
58+ enumLabels : [ 'Omni' , 'GUI' , 'Game' ] ,
59+ default : 'omni' ,
60+ placement : 'chat-bottom' ,
61+ } ,
62+ browserMode : {
63+ type : 'string' ,
64+ title : 'Browser Control' ,
65+ enum : [ 'hybrid' ] ,
66+ enumLabels : [ '混合模式' ] ,
67+ default : 'hybrid' ,
68+ placement : 'chat-bottom' ,
69+ visible : {
70+ dependsOn : 'agentMode' ,
71+ when : 'gui' ,
72+ } ,
73+ } ,
74+ } ,
75+ } ,
76+ transform : ( runtimeSettings : Record < string , unknown > ) => {
77+ return {
78+ agentMode : {
79+ id : runtimeSettings . agentMode ,
80+ browserMode : runtimeSettings . browserMode ,
81+ link : 'http://example.com' ,
82+ } ,
83+ } ;
84+ } ,
85+ } ,
5086 } ,
5187 logLevel : LogLevel . DEBUG ,
5288 webui : {
You can’t perform that action at this time.
0 commit comments