iangithub / LangChainLearnBook

LangChain 奇幻旅程:OpenAI x Gemini x 多模態應用開發指南 - 書籍範例原始碼
8 stars 5 forks source link

易讀性修正建議 #2

Closed jimliu-newbd closed 2 weeks ago

jimliu-newbd commented 3 weeks ago

奈米建議: 有的地方是用model,但有的地方用llm

model = AzureChatOpenAI(
    azure_endpoint=config.get("AZURE_OPENAI_ENDPOINT"),
    azure_deployment=config.get("AZURE_OPENAI_DEPLOYMENT_NAME"),
    openai_api_version=config.get("AZURE_OPENAI_API_VERSION"),
    api_key=config.get("AZURE_OPENAI_KEY"),
)
llm= AzureChatOpenAI(
    azure_endpoint=config.get("AZURE_OPENAI_ENDPOINT"),
    azure_deployment=config.get("AZURE_OPENAI_DEPLOYMENT_NAME"),
    openai_api_version=config.get("AZURE_OPENAI_API_VERSION"),
    api_key=config.get("AZURE_OPENAI_KEY"),
)
iangithub commented 2 weeks ago

這部份因涉及書本文字內容的描述,一旦調整程式碼會連帶造成與書本文字描述不同