Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brainlid committed Nov 8, 2023
1 parent a1990fd commit a68a732
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/langchain_demo_web/live/agent_chat_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ User says:
|> LLMChain.add_message(
PromptTemplate.to_message!(current_user_template, %{
current_user_json: current_user |> Jason.encode!(),
current_workout_json: FitnessLogs.list_fitness_logs(current_user.id, days: 0) |> Jason.encode!(),
current_workout_json:
FitnessLogs.list_fitness_logs(current_user.id, days: 0) |> Jason.encode!(),
today: today |> Calendar.strftime("%A, %Y-%m-%d"),
user_text: user_text
})
Expand All @@ -244,9 +245,9 @@ User says:
llm_chain =
LLMChain.new!(%{
llm:
ChatOpenAI.new!(%{
model: "gpt-4",
# model: "gpt-4-1106-preview",
ChatOpenAI.new!(%{
model: "gpt-4",
# model: "gpt-4-1106-preview",
# don't get creative with answers
temperature: 0,
request_timeout: 60_000,
Expand Down

0 comments on commit a68a732

Please sign in to comment.