Skip to content

Commit

Permalink
feat: 修改路由文件名
Browse files Browse the repository at this point in the history
feat: poetry 镜像
  • Loading branch information
fum committed Sep 12, 2024
1 parent 92e8956 commit f2b5d70
Show file tree
Hide file tree
Showing 8 changed files with 1,995 additions and 22 deletions.
4 changes: 2 additions & 2 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ def unauthorized_handler():
# register blueprint routers
def register_blueprints(app):
# 新增 : 注册路由
from controllers.ai_chat_report import init_ai_chat_report
from controllers.investoday import investoday
from controllers.console import bp as console_app_bp
from controllers.files import bp as files_bp
from controllers.inner_api import bp as inner_api_bp
from controllers.service_api import bp as service_api_bp
from controllers.web import bp as web_bp
init_ai_chat_report(app)
investoday(app)
CORS(
service_api_bp,
allow_headers=["Content-Type", "Authorization", "X-App-Code"],
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/console/app/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from extensions.ext_database import db
from libs.login import login_required
from models.model import AppMode, AppModelConfig
from services.investoday.llm_cache_update import LLMCacheUpdate
from services.app_model_config_service import AppModelConfigService
from services.investoday.llm_cache_update import LLMCacheUpdate


class ModelConfigResource(Resource):
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/console/app/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
from libs.helper import TimestampField, uuid_value
from libs.login import current_user, login_required
from models.model import App, AppMode
from services.investoday.llm_cache_update import LLMCacheUpdate
from services.app_dsl_service import AppDslService
from services.app_generate_service import AppGenerateService
from services.errors.app import WorkflowHashNotEqualError
from services.investoday.llm_cache_update import LLMCacheUpdate
from services.workflow_service import WorkflowService

logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
app = None


def init_ai_chat_report(app_):
def investoday(app_):
global app
app = app_

File renamed without changes.
Loading

0 comments on commit f2b5d70

Please sign in to comment.