Spaces:
Sleeping
Sleeping
Commit
·
d275a92
1
Parent(s):
732221f
remove key from code
Browse files
app.py
CHANGED
|
@@ -3,13 +3,14 @@ from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, Settings
|
|
| 3 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
| 4 |
from llama_index.legacy.callbacks import CallbackManager
|
| 5 |
from llama_index.llms.openai_like import OpenAILike
|
|
|
|
| 6 |
|
| 7 |
# Create an instance of CallbackManager
|
| 8 |
callback_manager = CallbackManager()
|
| 9 |
|
| 10 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
| 11 |
model = "internlm2.5-latest"
|
| 12 |
-
api_key =
|
| 13 |
|
| 14 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
| 15 |
# model = "internlm/internlm2_5-7b-chat"
|
|
|
|
| 3 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
| 4 |
from llama_index.legacy.callbacks import CallbackManager
|
| 5 |
from llama_index.llms.openai_like import OpenAILike
|
| 6 |
+
import os
|
| 7 |
|
| 8 |
# Create an instance of CallbackManager
|
| 9 |
callback_manager = CallbackManager()
|
| 10 |
|
| 11 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
| 12 |
model = "internlm2.5-latest"
|
| 13 |
+
api_key = os.getenv("API_KEY")
|
| 14 |
|
| 15 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
| 16 |
# model = "internlm/internlm2_5-7b-chat"
|