@superuser_only
def sync_dataset(request):
    ai_frame = getattr(SysSetting.objects.filter(types='ai',name='ai_frame').first(),'value','')
    if ai_frame == '1': # Dify
        dify_api_address = getattr(SysSetting.objects.filter(types='ai',name='ai_dify_api_address').first(),'value','')
        dify_dataset_key = getattr(SysSetting.objects.filter(types='ai',name='ai_dify_dataset_api_key').first(),'value','')
        dify_dateset_id = getattr(SysSetting.objects.filter(types='ai',name='ai_dify_dataset_selected').first(),'value','')
        project_list = getattr(SysSetting.objects.filter(types='ai',name='range_project_select').first(),'value','')
        headers = {
            'Authorization': 'Bearer {api_key}'.format(api_key=decrypt_data(dify_dataset_key)),
            'Content-Type': 'application/json'
        }

haibucuo 

graph TD
    Start --> Stop

呵哒

图表示例

[片段]Docker镜像最新版本

还是可以的呢?

graph TD
    Start --> Stop

[片段]数值
[片段]是的发生的佛挡杀佛
 

呵呵哒 2026年7月21日 17:04 0 条评论 收藏文档
AI