File tree 5 files changed +16
-6
lines changed
templates/types/llamaindexserver
5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " create-llama " : patch
3
+ ---
4
+
5
+ Update templates to use new chat ui config
Original file line number Diff line number Diff line change 5
5
from app .settings import init_settings
6
6
from app .workflow import create_workflow
7
7
from dotenv import load_dotenv
8
- from llama_index .server import LlamaIndexServer
8
+ from llama_index .server import LlamaIndexServer , UIConfig
9
9
10
10
logger = logging .getLogger ("uvicorn" )
11
11
@@ -15,7 +15,10 @@ def create_app():
15
15
16
16
app = LlamaIndexServer (
17
17
workflow_factory = create_workflow , # A factory function that creates a new workflow for each request
18
- component_dir = "components" ,
18
+ ui_config = UIConfig (
19
+ component_dir = "components" ,
20
+ app_title = "Chat App" ,
21
+ ),
19
22
env = env ,
20
23
logger = logger ,
21
24
)
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ python-dotenv = "^1.0.0"
17
17
pydantic = " <2.10"
18
18
aiostream = " ^0.5.2"
19
19
llama-index-core = " ^0.12.28"
20
- llama-index-server = " ^0.1.8 "
20
+ llama-index-server = " ^0.1.10 "
21
21
22
22
[tool .poetry .group .dev .dependencies ]
23
23
mypy = " ^1.8.0"
Original file line number Diff line number Diff line change 9
9
"dependencies" : {
10
10
"@llamaindex/openai" : " 0.2.0" ,
11
11
"@llamaindex/readers" : " ^2.0.0" ,
12
- "@llamaindex/server" : " 0.0.9 " ,
12
+ "@llamaindex/server" : " 0.1.0 " ,
13
13
"@llamaindex/tools" : " 0.0.4" ,
14
14
"dotenv" : " ^16.4.7" ,
15
15
"llamaindex" : " 0.9.17" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ initSettings();
7
7
8
8
new LlamaIndexServer ( {
9
9
workflow : workflowFactory ,
10
- appTitle : "LlamaIndex App" ,
11
- componentsDir : "components" ,
10
+ uiConfig : {
11
+ appTitle : "LlamaIndex App" ,
12
+ componentsDir : "components" ,
13
+ } ,
12
14
} ) . start ( ) ;
You can’t perform that action at this time.
0 commit comments