Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 0 additions & 110 deletions compose/local/django/Dockerfile.llama

This file was deleted.

12 changes: 8 additions & 4 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# core/
APPS_DIR = ROOT_DIR / "core"
LLAMA_MODEL_DIR = ROOT_DIR / "model_ai/download"

env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
Expand Down Expand Up @@ -80,6 +81,7 @@
"tracker",
"reference",
"xml_manager",
"model_ai",
]

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS + WAGTAIL
Expand Down Expand Up @@ -214,7 +216,7 @@

# Wagtail settings

WAGTAIL_SITE_NAME = "markapi"
WAGTAIL_SITE_NAME = "SciELO XML Tools"

# Search
# https://docs.wagtail.org/en/stable/topics/search/backends.html
Expand Down Expand Up @@ -295,6 +297,8 @@
}

# LLAMA
LLAMA_ENABLED = env.bool("LLAMA_ENABLED", default=False)
LLAMA_MODEL_DIR = ROOT_DIR / "llama3/llama-3.2"
MODEL_LLAMA = "llama-3.2-3b-instruct-q4_k_m.gguf"
LLAMA_ENABLED = env.bool("LLAMA_ENABLED", default=True)
MODEL_LLAMA = "llama-3.2-3b-instruct-q4_k_m.gguf"

#Aumento en el límite de campos
DATA_UPLOAD_MAX_NUMBER_FIELDS = 10000
5 changes: 3 additions & 2 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@

from core.search import views as search_views
from reference import views as reference_views
from config import api_router as api_router

urlpatterns = [
path("admin/autocomplete/", include(autocomplete_admin_urls)),
path("django-admin/", admin.site.urls),
path("admin/", include(wagtailadmin_urls)),
path("documents/", include(wagtaildocs_urls)),
path("search/", search_views.search, name="search"),
# JWT
path("api/v1/auth/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("api/v1/auth/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("api/v1/mix_citation/", include("config.api_router", namespace="reference")),
path("api/v1/", include(api_router)),
# URL para trocar idioma
path('i18n/', include('django.conf.urls.i18n')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# URLs com prefixo de idioma
urlpatterns += i18n_patterns(
path("admin/autocomplete/", include(autocomplete_admin_urls)),
path("admin/", include(wagtailadmin_urls)),
path("documents/", include(wagtaildocs_urls)),
path("search/", search_views.search, name="search"),
Expand Down
Loading
Loading