Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: remove v1 in app_base_url (#55)

John Wanga4713c01d5a2
diff --git a/api/models/model.py b/api/models/model.py
index 6ddbd858e19..c9fe5189ee0 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -505,7 +505,7 @@ class Site(db.Model):
@property
def app_base_url(self):
- return (current_app.config['APP_URL'] if current_app.config['APP_URL'] else request.host_url.rstrip('/')) + '/v1'
+ return (current_app.config['APP_URL'] if current_app.config['APP_URL'] else request.host_url.rstrip('/'))
class ApiToken(db.Model):