Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify api server #155

Merged
merged 2 commits into from
Oct 8, 2024
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
2 changes: 1 addition & 1 deletion ai/backend/base_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def __init__(self):
self.load_conf()

def load_conf(self):
self.ApiHost = "https://apiserver.deep-thought.io/proxy"
self.ApiHost = "https://apiserver.deepbi.com/proxy"

# self.database_model = 'test'
self.database_model = 'online'
Expand Down
27 changes: 21 additions & 6 deletions bi/templates/emails/invite.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@

{% block content %}

<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">Hi {{ invited.name }},</p>
<h2 class="intercom-align-left" style="color: #282F33; font-size: 18px; font-weight: bold; margin-bottom: 7px; margin-top: 30px; text-align: left !important" align="left">
{{ inviter.name }} (<a href="mailto:{{ inviter.email }}" target="_blank" style="border: none; color: #1251BA; outline: none !important">{{ inviter.email }}</a>)
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">Hi
{{ invited.name }},</p>
<h2 class="intercom-align-left"
style="color: #282F33; font-size: 18px; font-weight: bold; margin-bottom: 7px; margin-top: 30px; text-align: left !important"
align="left">
{{ inviter.name }} (<a href="mailto:{{ inviter.email }}" target="_blank"
style="border: none; color: #1251BA; outline: none !important">{{ inviter.email }}</a>)
诚邀加入{{ org.name }}.
</h2>
<table class="intercom-container intercom-align-center" align="center" style="border-collapse: collapse; border-spacing: 0; margin: 17px auto; table-layout: fixed; text-align: center !important"><tr><td style="background: #0071b2; border: 1px none #dadada; border-radius: 3px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0; padding: 12px 35px; text-align: left; vertical-align: top" align="left" bgcolor="#0071b2" valign="top"><a class="intercom-h2b-button" target="_blank" href="{{ invite_url }}" style="background: #0071b2; border: none; border-radius: 3px; color: white; display: inline-block; font-size: 14px; font-weight: bold; outline: none !important; text-decoration: none">Setup Account</a></td></tr></table>
<table class="intercom-container intercom-align-center" align="center"
style="border-collapse: collapse; border-spacing: 0; margin: 17px auto; table-layout: fixed; text-align: center !important">
<tr>
<td style="background: #0071b2; border: 1px none #dadada; border-radius: 3px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0; padding: 12px 35px; text-align: left; vertical-align: top"
align="left" bgcolor="#0071b2" valign="top"><a class="intercom-h2b-button" target="_blank"
href="{{ invite_url }}"
style="background: #0071b2; border: none; border-radius: 3px; color: white; display: inline-block; font-size: 14px; font-weight: bold; outline: none !important; text-decoration: none">Setup
Account</a></td>
</tr>
</table>
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">
<small>可以拷贝/粘贴链接地址到浏览器: {{ invite_url }}</small>
</p>
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">
电子邮箱: {{ invited.email }}<br>
账户信息: <a href="{{ url_for('bi.index', org_slug=org.slug, _external=True) }}" target="_blank" style="border: none; color: #1251BA; outline: none !important">{{ url_for('redash.index', org_slug=org.slug, _external=True) }}</a>
账户信息: <a href="{{ url_for('bi.index', org_slug=org.slug, _external=True) }}" target="_blank"
style="border: none; color: #1251BA; outline: none !important">{{ url_for('bi.index', org_slug=org.slug,
_external=True) }}</a>
</p>

{% endblock %}
{% endblock %}
3 changes: 1 addition & 2 deletions client/app/llm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"HttpProxyPort": "",
"ApiHost": "",
"required": [
"OpenaiApiKey",
"HttpProxyHost"
"OpenaiApiKey"
]
},
"DeepInsight": {
Expand Down
3 changes: 1 addition & 2 deletions client/dist_source/llm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"HttpProxyPort": "",
"ApiHost": "",
"required": [
"OpenaiApiKey",
"HttpProxyHost"
"OpenaiApiKey"
]
},
"DeepInsight": {
Expand Down