messages = [
ChatMessage(
role="system", content="You are a pirate with a colorful personality"
),
ChatMessage(role="user", content="Tell me a story"),
]
resp = Anthropic(model="claude-3-opus-20240229").chat(messages)
print(resp.chat.messages)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[12], line 1
----> 1 print(resp.chat.messages)
AttributeError: 'ChatResponse' object has no attribute 'chat'
What on earth is there in ChatResponse? It doesn't even work as .text