Skip to content

Commit

Permalink
query is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustLigh committed Jun 4, 2024
1 parent b5bf339 commit def8fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ models = chatbot.get_available_llm_models()

# Get image link.
# Work only for model "CohereForAI/c4ai-command-r-plus"
query_result = chatbot.query("Draw a cat.")
print(query_result.get_final_text())
print(query_result.get_image_link())
chat_result = chatbot.chat("Draw a cat.")
print(chat_result.get_final_text())
print(chat_result.get_image_link())

# Switch model with given index
chatbot.switch_llm(0) # Switch to the first model
Expand Down

0 comments on commit def8fd2

Please sign in to comment.