File size: 1,144 Bytes
d037cdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os

# Folder
HISTORY_DIR = "history"
SAVE_DIR = "documents"

if not os.path.exists(HISTORY_DIR):
    os.makedirs(HISTORY_DIR)
   
if not os.path.exists(SAVE_DIR):
    os.makedirs(SAVE_DIR)

# Whisper API
API_KEY = "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"
MODEL_ID = "whisper-1"

# Azure endpoint
OPENAI_API_TYPE = "azure"
OPENAI_API_VERSION = "2023-05-15"
# Embedding openai
EMBEDDING_API_KEY = "e672d672cf2d4c778e352e2f88271ebc"
EMBEDDING_API_BASE = "https://qaigpt2.openai.azure.com/"
EMBEDDING_DEPLOYMENT_ID = "embed"
# ChatGPT
OPENAI_API_KEY = "1941ec6a33bd405bac7f2f800b10d171"
OPENAI_API_BASE ="https://qaigptjp.openai.azure.com/"
DEPLOYMENT_ID = "gpt"

# Pinecone vector DB
PINECONE_API_KEY = "82b9902a-2908-4ece-88bf-483c413a91d7"
PINECONE_ENVIRONMENT = "us-west1-gcp-free"
INDEX_NAME = "text-indexing"


# Google search API
GOOGLE_API_KEY="AIzaSyBcwB4YIqjDcYr5XnPt5IrktqbH4Mb_1hE"
GOOGLE_CSE_ID="e61c62a86e2b848fd"

# Custom google search API
CUSTOM_API_KEY = "AIzaSyDycFFOFtPg123bm9N3BRCy_q5gyEk7fzs"
CUSTOM_CSE_ID = "3364dacc2a4144b22"

# Local host
TIMEOUT_STREAM = 60
SEVER = "0.0.0.0"
PORT = 7860
DEBUG = True