Skip to content

Commit

Permalink
Update names in example
Browse files Browse the repository at this point in the history
  • Loading branch information
tmichaeldb committed Apr 12, 2024
1 parent c04d5a7 commit 0716324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/using_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Actually create the underlying model the agent will use.
langchain_model = con.models.create(
'agent_model4',
'agent_model',
predict='answer',
engine='langchain',
prompt_template='You are a spicy, cheeky assistant. Add some personality and flare when responding to the user question: {{question}}',
Expand All @@ -27,7 +27,7 @@
print('Agent ready to use.')

# Now create an agent that will use the model we just created.
agent = con.agents.create('new_agent4', langchain_model)
agent = con.agents.create('new_agent', langchain_model)
print('Ask a question: ')
question = input()
answer = agent.completion([{'question': question, 'answer': None}])
Expand Down

0 comments on commit 0716324

Please sign in to comment.