Skip to content

Commit

Permalink
Fix vanilla model answer in example benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova authored Jan 16, 2025
1 parent 34a718c commit 798196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"\n",
" if is_vanilla_llm:\n",
" llm = agent\n",
" answer = str(llm([{\"role\": \"user\", \"content\": question}]))\n",
" answer = str(llm([{\"role\": \"user\", \"content\": question}]).content)\n",
" token_count = {\"input\": llm.last_input_token_count, \"output\": llm.last_output_token_count}\n",
" intermediate_steps = str([])\n",
" else:\n",
Expand Down

0 comments on commit 798196f

Please sign in to comment.