Merged
Conversation
## 安全性修復 - 修復 8 個檔案中的 eval() 安全性問題,改用 ast 模組進行安全計算 - 涵蓋 MCP、Agent、RAG 等模組的計算器工具 ## 內容更新 - 更新 10+ 個檔案中過時的 gpt-3.5-turbo 參考至 gpt-4o-mini - 更新價格表至 2025 年版本 ## 新增內容 - 企業級 MLOps 完整指南:成熟度模型、Feature Store、Kubeflow Pipeline、藍綠部署 - 知識圖譜應用指南:GraphRAG、多跳推理、知識更新策略 - AI 倫理與法規指南:EU AI Act、公平性分析、隱私保護、合規框架 ## 新增實戰專案 - VLM 圖像分析系統:多 VLM 提供者支援、文件分析、圖表數據提取
## LangChain 依賴更新 - rag_agent_system.py: langchain.chat_models → langchain_openai - CONTRIBUTING.md: langchain.llms → langchain_openai ## 異常處理改進 - 06_model_comparison.py: 修復 4 個 bare except - 03_gemini_basic.py: 修復 2 個 bare except - 01_llama31_complete.py: 修復 1 個 bare except - 02_crewai_multi_agent.py: 修復 1 個 bare except 所有 bare except 改為具體異常類型以提升可調試性
主要更新: - 修復 5 處 bare except,使用具體異常類型 (Exception, AttributeError 等) - 更新 LangChain imports 至最新版本: - langchain.vectorstores → langchain_community.vectorstores - langchain.embeddings → langchain_openai / langchain_huggingface - langchain.llms → langchain_openai - langchain.chat_models → langchain_openai - 更新過時的 API 參考: - text-davinci-003 → gpt-4o-mini (使用新 SDK) - gpt-4-turbo-preview → gpt-4o - gpt-4-vision-preview → gpt-4o (支援多模態) 影響檔案:14 個
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eval()替換為安全的ast.literal_eval()langchain.vectorstores→langchain_community.vectorstoreslangchain.embeddings→langchain_openai/langchain_huggingfacelangchain.llms→langchain_openailangchain.chat_models→langchain_openaitext-davinci-003→gpt-4o-mini(使用新版 SDK)gpt-4-turbo-preview→gpt-4ogpt-4-vision-preview→gpt-4o(多模態支援)Test plan