Skip to content

Commit

Permalink
feat: update assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
jrauljperez07 committed Jan 15, 2025
1 parent b6f19b9 commit 1b9afdb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions assistant/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PAIOS_ALLOW_ORIGINS='http://localhost:5173,https://0.0.0.0:8443,https://localhost:3000'
PAIOS_DB_ENCRYPTION_KEY='your_db_encryption_key_here'
CHUNK_SIZE='2000'
CHUNK_OVERLAP='400'
ADD_START_INDEX='True'
EMBEDDER_MODEL='llama3:latest'
SYSTEM_PROMPT='You are a helpful assistant for students learning needs.'
MAX_TOKENS='200'
TEMPERATURE='0.2'
TOP_K='40'
TOP_P='0.9'

PAIOS_SCHEME='https'
PAIOS_HOST='0.0.0.0'
PAIOS_EXPECTED_RP_ID='localhost'
PAIOS_PORT='8443'
PAIOS_URL='https://localhost:8443'

PAI_ASSISTANT_URL='https://localhost:3000'
PAIOS_JWT_SECRET='your_jwt_secret_here'
#Eleven labs
XI_API_URL='https://api.elevenlabs.io'
XI_API_KEY='sample_api_key'
XI_CHUNK_SIZE='1024'
#Ollama
OLLAMA_LOCAL_MODELS_URL='http://0.0.0.0:11434/api/tags'
OLLAMA_MODELS_DESCRIPTION_URL='https://ollama.com/library/'
2 changes: 1 addition & 1 deletion assistant/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_backend_app():
connexion_app.add_middleware(
CORSMiddleware,
position=MiddlewarePosition.BEFORE_EXCEPTION,
allow_origins=allow_origins,
allow_origins=["https://localhost:3000","https://localhost:8443"],
allow_credentials=True,
allow_methods=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],
allow_headers=["Authorization", "Content-Type", "Content-Range", "X-Total-Count"],
Expand Down

0 comments on commit 1b9afdb

Please sign in to comment.