Skip to content

Commit

Permalink
🅰️ claude example
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Aug 2, 2023
1 parent 3215d0e commit 45bc6be
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions examples/anthropic_claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@


async def run_with_claude():
llm = ChatAnthropic(model="claude-2")

async with CodeInterpreterSession(llm=llm) as session:
async with CodeInterpreterSession(model="claude-2") as session:
result = await session.generate_response(
"Plot the nvidea stock vs microsoft stock over the last 6 months."
)
result.show()

result = await session.generate_response(
"Store this data to a csv file."
)
print(result.files)


if __name__ == "__main__":
Expand Down

0 comments on commit 45bc6be

Please sign in to comment.