getGO007 commited on
Commit
4c82f28
·
verified ·
1 Parent(s): 2177008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -18,13 +18,17 @@ from llama_index.core.agent.workflow import FunctionAgent
18
  from llama_index.core.workflow import Context
19
 
20
  # ---- 1. Global Settings & API Keys ----
 
 
 
 
 
 
21
  Settings.llm = OpenAI(model="gpt-4o")
22
  Settings.embed_model = OpenAIEmbedding(model_name="text-embedding-3-large")
23
  Settings.chunk_size = 512
24
  Settings.chunk_overlap = 64
25
 
26
- OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
27
- LLAMA_CLOUD_API_KEY = os.getenv("LLAMA_CLOUD_API_KEY")
28
 
29
  # ---- 2. Parser Setup ----
30
  parser = LlamaParse(
 
18
  from llama_index.core.workflow import Context
19
 
20
  # ---- 1. Global Settings & API Keys ----
21
+
22
+ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
23
+ LLAMA_CLOUD_API_KEY = os.getenv("LLAMA_CLOUD_API_KEY")
24
+
25
+ openai.api_key = OPENAI_API_KEY
26
+
27
  Settings.llm = OpenAI(model="gpt-4o")
28
  Settings.embed_model = OpenAIEmbedding(model_name="text-embedding-3-large")
29
  Settings.chunk_size = 512
30
  Settings.chunk_overlap = 64
31
 
 
 
32
 
33
  # ---- 2. Parser Setup ----
34
  parser = LlamaParse(