Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Make the brand name configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
janpawellek committed Sep 15, 2023
1 parent 7aa1d1f commit 168b975
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ OWNAI_SECRET_KEY=PleaseReplace
# The database URI (the default sqlite:///ownAI.db is a SQLite database in the instance folder)
OWNAI_SQLALCHEMY_DATABASE_URI=sqlite:///ownAI.db

# The application's name
OWNAI_BRAND=ownAI

# API tokens and settings
# (you only need to set these if you want to use the specific API)
AI21_API_KEY=
Expand Down
2 changes: 1 addition & 1 deletion backaind/templates/_includes/main_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
data-bs-toggle="dropdown"
aria-expanded="false"
>
ownAI
{{ config.BRAND|default('ownAI') }}
</a>
<div class="dropdown-menu rounded-3 shadow-lg m-0">
<div
Expand Down
6 changes: 4 additions & 2 deletions backaind/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}{% endblock %} - ownAI</title>
<title>
{% block title %}{% endblock %} - {{ config.BRAND|default('ownAI') }}
</title>
{% block main_stylesheets %}
{% if g.vite_dev_server_enabled %}
<link
Expand All @@ -30,7 +32,7 @@
href="/"
class="navbar-brand fw-bold d-flex align-items-center col-lg-4 link-body-emphasis text-decoration-none"
>
ownAI
{{ config.BRAND|default('ownAI') }}
</a>
{% endif %}
<div class="d-flex gap-3">
Expand Down
8 changes: 4 additions & 4 deletions backaind/templates/settings/external_providers.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
>
<h3>Connect to external AI providers</h3>
<p>
You can access AIs from within ownAI that are operated by external
providers. To connect to these providers, you will need an account with
them. You will then receive a token or API key from the provider, which
you can paste into this fields to use the
You can access AIs from within {{ config.BRAND|default('ownAI') }} that
are operated by external providers. To connect to these providers, you
will need an account with them. You will then receive a token or API key
from the provider, which you can paste into this fields to use the
<a
href="http://aifiles.ownai.org/?aifileversion=1"
target="_blank"
Expand Down

0 comments on commit 168b975

Please sign in to comment.