Skip to content

Commit 4a20c7e

Browse files
Merge pull request #155 from DeepInsight-AI/new_pre
Modify api server
2 parents f1e2696 + e10d692 commit 4a20c7e

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

ai/backend/base_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def __init__(self):
66
self.load_conf()
77

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

1111
# self.database_model = 'test'
1212
self.database_model = 'online'

bi/templates/emails/invite.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,33 @@
22

33
{% block content %}
44

5-
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">Hi {{ invited.name }},</p>
6-
<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">
7-
{{ inviter.name }} (<a href="mailto:{{ inviter.email }}" target="_blank" style="border: none; color: #1251BA; outline: none !important">{{ inviter.email }}</a>)
5+
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">Hi
6+
{{ invited.name }},</p>
7+
<h2 class="intercom-align-left"
8+
style="color: #282F33; font-size: 18px; font-weight: bold; margin-bottom: 7px; margin-top: 30px; text-align: left !important"
9+
align="left">
10+
{{ inviter.name }} (<a href="mailto:{{ inviter.email }}" target="_blank"
11+
style="border: none; color: #1251BA; outline: none !important">{{ inviter.email }}</a>)
812
诚邀加入{{ org.name }}.
913
</h2>
10-
<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>
14+
<table class="intercom-container intercom-align-center" align="center"
15+
style="border-collapse: collapse; border-spacing: 0; margin: 17px auto; table-layout: fixed; text-align: center !important">
16+
<tr>
17+
<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"
18+
align="left" bgcolor="#0071b2" valign="top"><a class="intercom-h2b-button" target="_blank"
19+
href="{{ invite_url }}"
20+
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
21+
Account</a></td>
22+
</tr>
23+
</table>
1124
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">
1225
<small>可以拷贝/粘贴链接地址到浏览器: {{ invite_url }}</small>
1326
</p>
1427
<p class="intercom-align-left" style="line-height: 1.5; margin: 0 0 17px; text-align: left !important" align="left">
1528
电子邮箱: {{ invited.email }}<br>
16-
账户信息: <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>
29+
账户信息: <a href="{{ url_for('bi.index', org_slug=org.slug, _external=True) }}" target="_blank"
30+
style="border: none; color: #1251BA; outline: none !important">{{ url_for('bi.index', org_slug=org.slug,
31+
_external=True) }}</a>
1732
</p>
1833

19-
{% endblock %}
34+
{% endblock %}

client/app/llm.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"HttpProxyPort": "",
77
"ApiHost": "",
88
"required": [
9-
"OpenaiApiKey",
10-
"HttpProxyHost"
9+
"OpenaiApiKey"
1110
]
1211
},
1312
"DeepInsight": {

client/dist_source/llm.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"HttpProxyPort": "",
77
"ApiHost": "",
88
"required": [
9-
"OpenaiApiKey",
10-
"HttpProxyHost"
9+
"OpenaiApiKey"
1110
]
1211
},
1312
"DeepInsight": {

0 commit comments

Comments
 (0)