Skip to content

Commit

Permalink
Updated docker file, and removed debug system out
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeyoYT committed May 18, 2024
1 parent cb6f038 commit ecead97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ WORKDIR /app
# Set the environment variables from Docker environment variables
# If the Docker environment variable is not provided, use the default value from .env.example
ARG TOKEN
ENV TOKEN=${TOKEN:-your_actual_bot_token}
ENV TOKEN=${TOKEN}

ARG OLLAMA_URL
ENV OLLAMA_URL=${OLLAMA_URL:-https://your_ollama_api_url}
ENV OLLAMA_URL=${OLLAMA_URL}
ARG OLLAMA_PORT
ENV OLLAMA_PORT=${OLLAMA_PORT:-11434}
ARG OLLAMA_MODEL
ENV OLLAMA_MODEL=${OLLAMA_MODEL:-my_model_name}
ENV OLLAMA_MODEL=${OLLAMA_MODEL}
ARG OLLAMA_EMBEDDING_MODEL
ENV OLLAMA_EMBEDDING_MODEL=${OLLAMA_EMBEDDING_MODEL:-embedding_model}
ENV OLLAMA_EMBEDDING_MODEL=${OLLAMA_EMBEDDING_MODEL}
ARG OLLAMA_CHAT_MEMORY_UPTO
ENV OLLAMA_CHAT_MEMORY_UPTO=${OLLAMA_CHAT_MEMORY_UPTO:-1}

ARG DEV_ID
ENV DEV_ID=${DEV_ID:-your_discord_user_id}
ENV DEV_ID=${DEV_ID}
ARG WHITELISTED_USERS
ENV WHITELISTED_USERS=${WHITELISTED_USERS}

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/me/ailama/commands/AiCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public void handleCommand(SlashCommandInteractionEvent event) {
String urlOption = event.getOption("url") != null ? event.getOption("url").getAsString() : null;
boolean resetSession = event.getOption("reset-session") != null && event.getOption("reset-session").getAsBoolean();

System.out.println(urlOption);

String response = "";
String urlForContent = null;

Expand Down

0 comments on commit ecead97

Please sign in to comment.