Skip to content

fix: b001 creativeLlmModel#1

Open
panades wants to merge 1 commit intoAI-LLM-Bootcamp:masterfrom
panades:fix-B401-creativeLlmModel-bug
Open

fix: b001 creativeLlmModel#1
panades wants to merge 1 commit intoAI-LLM-Bootcamp:masterfrom
panades:fix-B401-creativeLlmModel-bug

Conversation

@panades
Copy link
Copy Markdown

@panades panades commented Nov 4, 2025

Description

  • Problem: The code instantiates creativeLlmModel with temperature=0.9 but calls llmModel.invoke, so the higher temperature is not applied.
  • Fix: Replace llmModel.invoke with creativeLlmModel.invoke for the poem request.
  • Impact: Aligns the example with the intended behavior (creative output). No API changes or side effects.

Changes

  • creativeLlmModel = OpenAI(temperature=0.9)
  • response = creativeLlmModel.invoke("Write a short 5 line poem about JFK")

Testing

  • Manually verified the response becomes more diverse/creative with temperature=0.9.
  • No breaking changes; existing examples continue to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant