organicoder commited on
Commit
fdc1ac9
·
verified ·
1 Parent(s): bd61a63

Delete config.py

Browse files
Files changed (1) hide show
  1. config.py +0 -32
config.py DELETED
@@ -1,32 +0,0 @@
1
- import os
2
- from typing import Optional
3
-
4
- class Config:
5
- """Configuration class for the chatbot"""
6
-
7
- # OpenAI Configuration
8
- OPENAI_API_KEY: str = os.getenv("OPENAI_API_KEY", "")
9
- OPENAI_MODEL: str = os.getenv("OPENAI_MODEL", "gpt-3.5-turbo")
10
- MAX_TOKENS: int = int(os.getenv("MAX_TOKENS", "500"))
11
- TEMPERATURE: float = float(os.getenv("TEMPERATURE", "0.7"))
12
-
13
- # System prompt
14
- SYSTEM_PROMPT: str = os.getenv(
15
- "SYSTEM_PROMPT",
16
- "You are a helpful and friendly AI assistant with knowledge about Health Tech Hub Copenhagen. Use the provided PDF information when relevant to answer questions accurately and comprehensively. Keep your responses concise and engaging."
17
- )
18
-
19
- # Gradio Configuration
20
- GRADIO_THEME: str = "soft"
21
- GRADIO_HEIGHT: int = 500
22
- GRADIO_TITLE: str = "AI Chatbot"
23
-
24
- @classmethod
25
- def validate(cls) -> bool:
26
- """Validate that required configuration is present"""
27
- if not cls.OPENAI_API_KEY:
28
- raise ValueError(
29
- "OPENAI_API_KEY environment variable is required. "
30
- "Please set it before running the application."
31
- )
32
- return True