chore: docker profiles, spring-ai-openai dep, spring-dotenv, env example updates
This commit is contained in:
parent
dd19eb6a76
commit
7c721cd75f
@ -12,5 +12,4 @@ uploads/
|
|||||||
.env
|
.env
|
||||||
.env.example
|
.env.example
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
Dockerfile*
|
|
||||||
engines/
|
engines/
|
||||||
|
|||||||
29
.env.example
29
.env.example
@ -4,18 +4,27 @@
|
|||||||
# Copy this file to .env and fill in your values.
|
# Copy this file to .env and fill in your values.
|
||||||
# .env is git-ignored and never committed.
|
# .env is git-ignored and never committed.
|
||||||
|
|
||||||
# --- LLM Provider ---
|
# --- LLM (Ollama local) ---
|
||||||
|
|
||||||
# Default chat provider (ollama)
|
|
||||||
AI_DEFAULT_CHAT_PROVIDER=ollama
|
|
||||||
|
|
||||||
# --- Model overrides (optional) ---
|
|
||||||
|
|
||||||
# Ollama chat model (default: gemma4:12b)
|
# Ollama chat model (default: gemma4:12b)
|
||||||
# AI_CHAT_MODEL_OLLAMA=gemma4:12b
|
# AI_CHAT_MODEL_OLLAMA=gemma4:12b
|
||||||
|
|
||||||
# Ollama embedding model (default: qwen3-embedding:latest)
|
# Ollama embedding model (default: nomic-embed-text)
|
||||||
# AI_EMBEDDING_MODEL=qwen3-embedding:latest
|
# AI_EMBEDDING_MODEL=nomic-embed-text
|
||||||
|
|
||||||
# Embedding vector dimension (default: 4096)
|
# Embedding vector dimension (default: 768)
|
||||||
# AI_EMBEDDING_DIMENSION=4096
|
# AI_EMBEDDING_DIMENSION=768
|
||||||
|
|
||||||
|
# --- Cloud Chat (Ollama Cloud, DeepSeek, etc.) ---
|
||||||
|
|
||||||
|
# Chat provider: "ollama" (local, default), "ollama-cloud", or "deepseek"
|
||||||
|
# AI_DEFAULT_CHAT_PROVIDER=ollama
|
||||||
|
|
||||||
|
# Cloud API key (required for ollama-cloud or deepseek)
|
||||||
|
# AI_CLOUD_API_KEY=sk-...
|
||||||
|
|
||||||
|
# Cloud base URL (Ollama Cloud: https://api.ollama.ai/v1 | DeepSeek: https://api.deepseek.com)
|
||||||
|
# AI_CLOUD_BASE_URL=https://api.ollama.ai/v1
|
||||||
|
|
||||||
|
# Cloud chat model (Ollama Cloud: gemma4:31b-cloud | DeepSeek: deepseek-chat)
|
||||||
|
# AI_CLOUD_CHAT_MODEL=gemma4:31b-cloud
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
|
profiles:
|
||||||
|
- all
|
||||||
container_name: decompile-ai-backend
|
container_name: decompile-ai-backend
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
@ -20,6 +22,9 @@ services:
|
|||||||
- decompile-ai-network
|
- decompile-ai-network
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
profiles:
|
||||||
|
- dev
|
||||||
|
- all
|
||||||
container_name: decompile-ai-postgres
|
container_name: decompile-ai-postgres
|
||||||
image: pgvector/pgvector:pg18
|
image: pgvector/pgvector:pg18
|
||||||
environment:
|
environment:
|
||||||
@ -39,6 +44,9 @@ services:
|
|||||||
- decompile-ai-network
|
- decompile-ai-network
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
|
profiles:
|
||||||
|
- dev
|
||||||
|
- all
|
||||||
container_name: decompile-ai-rabbitmq
|
container_name: decompile-ai-rabbitmq
|
||||||
image: rabbitmq:4-management
|
image: rabbitmq:4-management
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
10
pom.xml
10
pom.xml
@ -151,10 +151,19 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.ai</groupId>
|
||||||
|
<artifactId>spring-ai-openai</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-client-chat</artifactId>
|
<artifactId>spring-ai-client-chat</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>me.paulschwarz</groupId>
|
||||||
|
<artifactId>spring-dotenv</artifactId>
|
||||||
|
<version>5.1.0</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
@ -193,6 +202,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.15.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>default-compile</id>
|
<id>default-compile</id>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user