diff --git a/backend/ai_response_processor/.gitignore b/backend/ai_response_processor/.gitignore new file mode 100644 index 00000000..2e065696 --- /dev/null +++ b/backend/ai_response_processor/.gitignore @@ -0,0 +1,2 @@ +/env +.env \ No newline at end of file diff --git a/backend/ai_response_processor/news/contentqueue/rabbitmq_producer.py b/backend/ai_response_processor/news/contentqueue/rabbitmq_producer.py index ecd6f92b..0490dbb2 100644 --- a/backend/ai_response_processor/news/contentqueue/rabbitmq_producer.py +++ b/backend/ai_response_processor/news/contentqueue/rabbitmq_producer.py @@ -5,6 +5,8 @@ from news.schema.message_item import MessageItem +load_dotenv() + CONFIG = { 'username': os.getenv('RABBITMQ_USERNAME'), 'password': os.getenv('RABBITMQ_PASSWORD'), diff --git a/backend/ai_response_processor/requirements.txt b/backend/ai_response_processor/requirements.txt index 7555686d..e5797852 100644 --- a/backend/ai_response_processor/requirements.txt +++ b/backend/ai_response_processor/requirements.txt @@ -2,5 +2,5 @@ langchain==0.0.332 python-dotenv==1.0.0 openai==0.28.0 uvicorn==0.28.0 -pika -fastapi \ No newline at end of file +pika==1.3.2 +fastapi==0.110.0 \ No newline at end of file