Skip to content

Commit 1876950

Browse files
authored
fix null embedding model name when create llamacloud index (#543)
1 parent c7349b4 commit 1876950

File tree

1 file changed

+2
-1
lines changed
  • llama-index-server/llama_index/server/services/llamacloud

1 file changed

+2
-1
lines changed

llama-index-server/llama_index/server/services/llamacloud/index.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def _create_index(
149149
"type": "OPENAI_EMBEDDING",
150150
"component": {
151151
"api_key": os.getenv("OPENAI_API_KEY"), # editable
152-
"model_name": os.getenv("EMBEDDING_MODEL"),
152+
"model_name": Settings.embed_model.model_name
153+
or "text-embedding-3-small",
153154
},
154155
},
155156
"transform_config": {

0 commit comments

Comments
 (0)