Assistant API response messages + token count

  1. Assistant responses should automatically appear in that thread, you can confirm this with:
    messages = client.beta.threads.messages.list(thread.id)
  2. I believe the ThreadMessage will have the text value, but not sure it has a token attribute. Maybe check the run or thread object?
1 Like