File tree Expand file tree Collapse file tree 3 files changed +24
-10
lines changed Expand file tree Collapse file tree 3 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,12 @@ FROM python:3.9-slim
3
3
LABEL vendor=neon.ai \
4
4
ai.neon.name="neon-llm-gemini"
5
5
6
- ENV OVOS_CONFIG_BASE_FOLDER neon
7
- ENV OVOS_CONFIG_FILENAME diana.yaml
8
- ENV XDG_CONFIG_HOME /config
6
+ ENV OVOS_CONFIG_BASE_FOLDER=neon
7
+ ENV OVOS_CONFIG_FILENAME=diana.yaml
8
+ ENV OVOS_DEFAULT_CONFIG=/opt/neon/diana.yaml
9
+ ENV XDG_CONFIG_HOME=/config
10
+ ENV CHATBOT_VERSION=v2
11
+
9
12
COPY docker_overlay/ /
10
13
11
14
WORKDIR /app
Original file line number Diff line number Diff line change 5
5
- pika
6
6
warning :
7
7
- filelock
8
- info : []
8
+ - watchdog
9
+ - httpcore
10
+ info :
11
+ - openai
12
+ - asyncio
13
+ - matplotlib
9
14
debug : []
10
15
MQ :
11
- server : api. neon.ai
16
+ server : neon-rabbitmq
12
17
port : 5672
13
18
users :
14
19
mq_handler :
@@ -19,4 +24,8 @@ LLM_GEMINI:
19
24
role : " You are trying to give a short answer in less than 40 words."
20
25
context_depth : 3
21
26
max_tokens : 100
22
- num_parallel_processes : 2
27
+ num_parallel_processes : 2
28
+ llm_bots :
29
+ gemini :
30
+ - description : You are trying to give a short answer in less than 40 words.
31
+ name : assistant
Original file line number Diff line number Diff line change 25
25
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
27
27
from neon_llm_gemini .rmq import GeminiMQ
28
+ from neon_utils .log_utils import init_log
28
29
29
30
30
31
def main ():
32
+ init_log (log_name = "gemini" )
33
+
31
34
# Run RabbitMQ
32
- geminiMQ = GeminiMQ ()
33
- geminiMQ .run (run_sync = False , run_consumers = True ,
34
- daemonize_consumers = True )
35
- geminiMQ .observer_thread .join ()
35
+ gemini_mq_service = GeminiMQ ()
36
+ gemini_mq_service .run (run_sync = False , run_consumers = True ,
37
+ daemonize_consumers = True )
36
38
37
39
38
40
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments