นำเข้าแอปพลิเคชัน Dify — ผู้ช่วยแชตในการติดตั้ง Dify
แอปพลิเคชันaggrega import เป็น Aggregate, Release และ Manifest ที่
นำ
| โฟลเดอร์ | สิ่ง |
|---|---|
source/ | แอปพลิเคชัน support-assistant.yml ไฟล์ .aggrega-config.yaml ที่import-answers.yaml ซึ่ง |
draft/ | ไฟล์aggrega import support-assistant.yml --target helm เขียน โดยstdout.txt สำหรับimport.txt สำหรับ |
source/support-assistant.yml เขียน0.7.0
ใน checkout ของcheck.sh รันdraft/ เปรียบAGGREGA_CATALOG_DIRS
ร่างตัวอย่าง
คุณ
เขียน
aggrega draft --example import-difyจาก
cd import-difyบิลด์
การนำsource/ นำimport-answers.yaml และ pull สิ่งAGGREGA_CATALOG_DIRS หรือworkspace.catalog_dirs — จะ
cd sourceaggrega import support-assistant.yml --target helmaggrega validate --release release.yamlaggrega build --release release.yamlการ
กับผู้ช่วย AI
ผู้
ใช้เครื่องมือของ Aggrega เท่านั้น และอย่าสร้างโฟลเดอร์เอง หากโฟลเดอร์พื้นที่ทำงานยังไม่มีโฟลเดอร์ `import-dify` ให้เรียกเครื่องมือ `draft` หนึ่งครั้งโดยตั้ง `example` เป็น `import-dify` และไม่ระบุ `dir` เครื่องมือจะเขียนตัวอย่างลงในโฟลเดอร์ `import-dify` ใหม่ ซึ่งโฟลเดอร์ `source` ของโฟลเดอร์นั้นเก็บสิ่งที่ตัวอย่างนี้นำเข้า จากนั้นเรียกเครื่องมือ `import` โดยตั้ง `workspace_root` เป็น `import-dify/source` ตั้ง `source` เป็น `support-assistant.yml` และตั้ง `target` เป็น `helm` เครื่องมือจะอ่านคำตอบที่ต้องใช้จาก `import-answers.yaml` ที่อยู่ข้าง `support-assistant.yml` เขียนร่างลงใน `import-dify/source` และ pull สิ่งที่ร่างเหล่านั้นต้องใช้ จากนั้นเรียกเครื่องมือ `validate` โดยตั้ง `workspace_root` เป็น `import-dify/source` และตั้ง `release` เป็น `release.yaml` และเรียกเครื่องมือ `build` โดยตั้ง `workspace_root` เป็น `import-dify/source` ตั้ง `release` เป็น `release.yaml` และตั้ง `write` เป็น true แล้วบอกฉันว่าบิลด์เขียนไฟล์ใดบ้าง ไฟล์เหล่านั้นอยู่ใน `import-dify/source/dist/`ทดสอบ
เมื่อ--target compose และhttp://127.0.0.1:5001 และmarketplace_enabled ของ Release ที่
curl -sS http://127.0.0.1:5001/v1/chat-messages \ -H 'Authorization: Bearer <app key>' -H 'Content-Type: application/json' \ -d '{"inputs": {}, "query": "In one short sentence: what does a support plan cover?", "response_mode": "blocking", "user": "test-it"}'คีย์Incorrect API key provided ของ OpenAI เมื่อ
{"code":"provider_not_initialize","message":"Model gpt-4o-mini credentials is not initialized.","status":400}เมื่อ
kubectl port-forward -n <namespace> svc/dify-zdapi-default 5001:5001