Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
daad20ba
Commit
daad20ba
authored
Jul 31, 2023
by
Joel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/github-star-api-limit' into deploy/dev
parents
9b52050b
d1f63289
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
20 deletions
+26
-20
README.md
README.md
+0
-1
README_CN.md
README_CN.md
+0
-1
README_ES.md
README_ES.md
+0
-1
README_JA.md
README_JA.md
+0
-1
config.py
api/config.py
+1
-1
docker-compose.yaml
docker/docker-compose.yaml
+3
-3
index.tsx
web/app/components/header/github-star/index.tsx
+21
-11
package.json
web/package.json
+1
-1
No files found.
README.md
View file @
daad20ba
...
@@ -139,7 +139,6 @@ To protect your privacy, please avoid posting security issues on GitHub. Instead
...
@@ -139,7 +139,6 @@ To protect your privacy, please avoid posting security issues on GitHub. Instead
This software uses the following open-source software:
This software uses the following open-source software:
-
Chase, H. (2022). LangChain
[
Computer software
]
. https://github.com/hwchase17/langchain
-
Chase, H. (2022). LangChain
[
Computer software
]
. https://github.com/hwchase17/langchain
-
Liu, J. (2022). LlamaIndex
[
Computer software
]
. doi: 10.5281/zenodo.1234.
For more information, please refer to the official website or license text of the respective software.
For more information, please refer to the official website or license text of the respective software.
...
...
README_CN.md
View file @
daad20ba
...
@@ -134,7 +134,6 @@ A: 现已支持英文与中文,你可以为我们贡献语言包。
...
@@ -134,7 +134,6 @@ A: 现已支持英文与中文,你可以为我们贡献语言包。
本软件使用了以下开源软件:
本软件使用了以下开源软件:
-
Chase, H. (2022). LangChain
[
Computer software
]
. https://github.com/hwchase17/langchain
-
Chase, H. (2022). LangChain
[
Computer software
]
. https://github.com/hwchase17/langchain
-
Liu, J. (2022). LlamaIndex
[
Computer software
]
. doi: 10.5281/zenodo.1234.
更多信息,请参考相应软件的官方网站或许可证文本。
更多信息,请参考相应软件的官方网站或许可证文本。
...
...
README_ES.md
View file @
daad20ba
...
@@ -115,7 +115,6 @@ Para proteger tu privacidad, evita publicar problemas de seguridad en GitHub. En
...
@@ -115,7 +115,6 @@ Para proteger tu privacidad, evita publicar problemas de seguridad en GitHub. En
Este software utiliza el siguiente software de código abierto:
Este software utiliza el siguiente software de código abierto:
-
Chase, H. (2022). LangChain
[
Software de computadora
]
. https://github.com/hwchase17/langchain
-
Chase, H. (2022). LangChain
[
Software de computadora
]
. https://github.com/hwchase17/langchain
-
Liu, J. (2022). LlamaIndex
[
Software de computadora
]
. doi: 10.5281/zenodo.1234.
Para obtener más información, consulta el sitio web oficial o el texto de la licencia del software correspondiente.
Para obtener más información, consulta el sitio web oficial o el texto de la licencia del software correspondiente.
...
...
README_JA.md
View file @
daad20ba
...
@@ -114,7 +114,6 @@ A: 現在、英語と中国語に対応しており、言語パックを寄贈
...
@@ -114,7 +114,6 @@ A: 現在、英語と中国語に対応しており、言語パックを寄贈
本ソフトウェアは、以下のオープンソースソフトウェアを使用しています:
本ソフトウェアは、以下のオープンソースソフトウェアを使用しています:
-
Chase, H. (2022). LangChain
[
Computer software
]
. https://github.com/hwchase17/langchain
-
Chase, H. (2022). LangChain
[
Computer software
]
. https://github.com/hwchase17/langchain
-
Liu, J. (2022). LlamaIndex
[
Computer software
]
. doi: 10.5281/zenodo.1234.
詳しくは、各ソフトウェアの公式サイトまたはライセンス文をご参照ください。
詳しくは、各ソフトウェアの公式サイトまたはライセンス文をご参照ください。
...
...
api/config.py
View file @
daad20ba
...
@@ -90,7 +90,7 @@ class Config:
...
@@ -90,7 +90,7 @@ class Config:
self
.
CONSOLE_URL
=
get_env
(
'CONSOLE_URL'
)
self
.
CONSOLE_URL
=
get_env
(
'CONSOLE_URL'
)
self
.
API_URL
=
get_env
(
'API_URL'
)
self
.
API_URL
=
get_env
(
'API_URL'
)
self
.
APP_URL
=
get_env
(
'APP_URL'
)
self
.
APP_URL
=
get_env
(
'APP_URL'
)
self
.
CURRENT_VERSION
=
"0.3.1
1
"
self
.
CURRENT_VERSION
=
"0.3.1
2
"
self
.
COMMIT_SHA
=
get_env
(
'COMMIT_SHA'
)
self
.
COMMIT_SHA
=
get_env
(
'COMMIT_SHA'
)
self
.
EDITION
=
"SELF_HOSTED"
self
.
EDITION
=
"SELF_HOSTED"
self
.
DEPLOY_ENV
=
get_env
(
'DEPLOY_ENV'
)
self
.
DEPLOY_ENV
=
get_env
(
'DEPLOY_ENV'
)
...
...
docker/docker-compose.yaml
View file @
daad20ba
...
@@ -2,7 +2,7 @@ version: '3.1'
...
@@ -2,7 +2,7 @@ version: '3.1'
services
:
services
:
# API service
# API service
api
:
api
:
image
:
langgenius/dify-api:0.3.1
1
image
:
langgenius/dify-api:0.3.1
2
restart
:
always
restart
:
always
environment
:
environment
:
# Startup mode, 'api' starts the API server.
# Startup mode, 'api' starts the API server.
...
@@ -124,7 +124,7 @@ services:
...
@@ -124,7 +124,7 @@ services:
# worker service
# worker service
# The Celery worker for processing the queue.
# The Celery worker for processing the queue.
worker
:
worker
:
image
:
langgenius/dify-api:0.3.1
1
image
:
langgenius/dify-api:0.3.1
2
restart
:
always
restart
:
always
environment
:
environment
:
# Startup mode, 'worker' starts the Celery worker for processing the queue.
# Startup mode, 'worker' starts the Celery worker for processing the queue.
...
@@ -176,7 +176,7 @@ services:
...
@@ -176,7 +176,7 @@ services:
# Frontend web application.
# Frontend web application.
web
:
web
:
image
:
langgenius/dify-web:0.3.1
1
image
:
langgenius/dify-web:0.3.1
2
restart
:
always
restart
:
always
environment
:
environment
:
EDITION
:
SELF_HOSTED
EDITION
:
SELF_HOSTED
...
...
web/app/components/header/github-star/index.tsx
View file @
daad20ba
'use client'
import
React
,
{
useEffect
,
useState
}
from
'react'
import
{
Github
}
from
'@/app/components/base/icons/src/public/common'
import
{
Github
}
from
'@/app/components/base/icons/src/public/common'
import
type
{
GithubRepo
}
from
'@/models/common'
import
type
{
GithubRepo
}
from
'@/models/common'
...
@@ -10,18 +12,26 @@ const getStar = async () => {
...
@@ -10,18 +12,26 @@ const getStar = async () => {
return
res
.
json
()
return
res
.
json
()
}
}
const
GithubStar
=
async
()
=>
{
const
GithubStar
=
()
=>
{
let
githubRepo
:
GithubRepo
=
{
stargazers_count
:
0
}
const
[
githubRepo
,
setGithubRepo
]
=
useState
<
GithubRepo
>
({
stargazers_count
:
6000
})
const
[
isFetched
,
setIsFetched
]
=
useState
(
false
)
if
(
process
.
env
.
NODE_ENV
===
'development'
)
useEffect
(()
=>
{
return
null
(
async
()
=>
{
try
{
try
{
if
(
process
.
env
.
NODE_ENV
===
'development'
)
githubRepo
=
await
getStar
()
return
}
catch
(
e
)
{
await
setGithubRepo
(
await
getStar
())
setIsFetched
(
true
)
}
catch
(
e
)
{
}
})()
},
[])
if
(
!
isFetched
)
return
null
return
null
}
return
(
return
(
<
a
<
a
...
...
web/package.json
View file @
daad20ba
{
{
"name"
:
"dify-web"
,
"name"
:
"dify-web"
,
"version"
:
"0.3.1
1
"
,
"version"
:
"0.3.1
2
"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"next dev"
,
"dev"
:
"next dev"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment