# threads

thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
creation_date: 2024-10-07T19:49:48.236604
last_updated_date: 2024-10-07T22:28:53.933093
messages:
[{"role": "user", "content": "test"}, {"role": "assistant", "content": "Hello! How can I assist you today?"}, {"role": "user", "content": "test"}, {"role": "assistant", "content": "It looks like you're testing things out. If there's anything specific you'd like to try or any questions you have, feel free to let me know!"}, {"role": "user", "content": "test"}, {"role": "assistant", "content": "No problem! If you need help with something specific or just want to explore what I can do, just let me know. I'm here to assist you!"}, {"role": "assistant", "content": "It seems like you're testing. If you have any specific questions or need assistance with something, feel free to ask!"}, {"role": "user", "content": "test"}, {"role": "assistant", "content": "If you're testing, everything seems to be working fine on my end! If you have any questions or need help with something specific, just let me know."}, {"role": "user", "content": ""}, {"role": "user", "content": ""}, {"role": "user", "content": "sd"}, {"role": "assistant", "content": "It seems like you might have entered some random text. If there's something specific you need help with or if you have a question, feel free to let me know!"}, {"role": "assistant", "content": "It looks like you might have typed some random letters. If there's something specific you'd like help with or if you have any questions, just let me know!"}, {"role": "user", "content": "sd"}, {"role": "assistant", "content": "It seems like you entered \"sd.\" If you meant to type something else or have a question, please feel free to share more details so I can assist you better!"}, {"role": "assistant", "content": "It looks like you typed \"sd.\" If there's something specific you need help with or if you have any questions, feel free to let me know!"}, {"role": "assistant", "content": "It seems like you entered \"sd.\" If you meant to type something else or have a question, please feel free to share more details so I can assist you better!"}]


thread_id: 6b9f86f9-e233-4a33-8f61-e9c94bd8d2d0
creation_date: 2024-10-07T21:08:08.437473
last_updated_date: 2024-10-07T21:08:50.787636
messages:
[{"role": "user", "content": "Test"}, {"role": "assistant", "content": "Hello! How can I assist you today?"}, {"role": "user", "content": "Nice it works?"}, {"role": "assistant", "content": "Great to hear! If there's anything specific you'd like help with, feel free to let me know."}, {"role": "assistant", "content": "Great! If there's anything specific you'd like help with, just let me know."}]


thread_id: fe437224-a9ea-4762-a4d5-3279d71a6f3d
creation_date: 2024-10-07T22:35:43.912602
last_updated_date: 2024-10-07T22:46:15.607148
messages:
[{"role": "assistant", "content": "Hello! How can I assist you today?"}, {"role": "user", "content": "test"}, {"role": "user", "content": "test"}, {"role": "assistant", "content": "It looks like you're testing the system. How can I assist you further?"}, {"role": "user", "content": "reate random file with random contents"}, {"role": "assistant", "content": ""}]


# thread_runs

id: 44fb9ca9-9b5a-4a09-9fad-126d5ad1f440
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: failed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
last_error:
Error in API call: (builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable
[SQL: UPDATE thread_runs SET status=?, completed_at=?, usage=? WHERE thread_runs.id = ?]
[parameters: [{'status': 'completed', 'usage': {'completion_tokens': 9, 'prompt_tokens': 72, 'total_tokens': 81, 'completion_tokens_details': CompletionTokensDetail ... (60 characters truncated) ... ails': PromptTokensDetails(audio_tokens=None, cached_tokens=0)}, 'completed_at': 1728316192, 'thread_runs_id': '44fb9ca9-9b5a-4a09-9fad-126d5ad1f440'}]]

Full error: StatementError('(builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable')

system_message:
{"role": "system", "content": "You are a friendly and intelligent assistant, always ready to help with a wide range of tasks. Your responses should be helpful, accurate, and tailored to the user's needs. If you're unsure about something, don't hesitate to ask for clarification. Your goal is to provide the best possible assistance to the user."}


id: 438d1e63-e304-46ed-853d-392dde0fde15
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: failed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
last_error:
Error in API call: (builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable
[SQL: UPDATE thread_runs SET status=?, completed_at=?, usage=? WHERE thread_runs.id = ?]
[parameters: [{'status': 'completed', 'usage': {'completion_tokens': 29, 'prompt_tokens': 90, 'total_tokens': 119, 'completion_tokens_details': CompletionTokensDeta ... (62 characters truncated) ... ails': PromptTokensDetails(audio_tokens=None, cached_tokens=0)}, 'completed_at': 1728316322, 'thread_runs_id': '438d1e63-e304-46ed-853d-392dde0fde15'}]]

Full error: StatementError('(builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable')

system_message:
{"role": "system", "content": "You are a friendly and intelligent assistant, always ready to help with a wide range of tasks. Your responses should be helpful, accurate, and tailored to the user's needs. If you're unsure about something, don't hesitate to ask for clarification. Your goal is to provide the best possible assistance to the user."}


id: a668d3a6-cfc6-456b-adf5-cc0d8a0a492d
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: failed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
last_error:
Error in API call: (builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable
[SQL: UPDATE thread_runs SET status=?, completed_at=?, usage=? WHERE thread_runs.id = ?]
[parameters: [{'usage': {'completion_tokens': 31, 'prompt_tokens': 163, 'total_tokens': 194, 'completion_tokens_details': CompletionTokensDetails(audio_tokens=None, ... (63 characters truncated) ... ils(audio_tokens=None, cached_tokens=0)}, 'completed_at': 1728319712, 'status': 'completed', 'thread_runs_id': 'a668d3a6-cfc6-456b-adf5-cc0d8a0a492d'}]]

Full error: StatementError('(builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable')


id: 23b27ac8-3d92-4dfc-9f2d-2b9af22d9348
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
"{\"completion_tokens\": 31, \"prompt_tokens\": 163, \"total_tokens\": 194, \"completion_tokens_details\": {\"audio_tokens\": null, \"reasoning_tokens\": 0}, \"prompt_tokens_details\": {\"audio_tokens\": null, \"cached_tokens\": 0}}"


id: 391afcf1-a15b-4a28-90ed-66cee94b806f
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: failed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
last_error:
Error in API call: cannot access local variable 'response_message' where it is not associated with a value

Full error: UnboundLocalError("cannot access local variable 'response_message' where it is not associated with a value")


id: 7489803a-3f21-4c3e-92fc-50e74d67fcca
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: failed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
last_error:
Error in API call: (builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable
[SQL: UPDATE thread_runs SET status=?, completed_at=?, usage=? WHERE thread_runs.id = ?]
[parameters: [{'usage': {'completion_tokens': 31, 'prompt_tokens': 163, 'total_tokens': 194, 'completion_tokens_details': CompletionTokensDetails(audio_tokens=None, ... (63 characters truncated) ... ils(audio_tokens=None, cached_tokens=0)}, 'completed_at': 1728320597, 'status': 'completed', 'thread_runs_id': '7489803a-3f21-4c3e-92fc-50e74d67fcca'}]]

Full error: StatementError('(builtins.TypeError) Object of type CompletionTokensDetails is not JSON serializable')


id: 66be71d5-61f7-4679-acc4-9c15dfa249a0
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 31, "prompt_tokens": 163, "total_tokens": 194, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 17f50677-b1f1-4aba-a854-22f8d154066c
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 23, "prompt_tokens": 163, "total_tokens": 186, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 7f003adc-5775-4d66-9593-dd5158993c5b
thread_id: 6b9f86f9-e233-4a33-8f61-e9c94bd8d2d0
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 9, "prompt_tokens": 72, "total_tokens": 81, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 1b42a205-9d83-4bd8-8bdc-c5a25527101d
thread_id: 6b9f86f9-e233-4a33-8f61-e9c94bd8d2d0
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 20, "prompt_tokens": 93, "total_tokens": 113, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 26be4f69-49c1-4de0-8793-9600c19fc94c
thread_id: 6b9f86f9-e233-4a33-8f61-e9c94bd8d2d0
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 16, "prompt_tokens": 117, "total_tokens": 133, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: ebc81e04-4aac-47b6-9e8d-01cf066e758c
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 31, "prompt_tokens": 195, "total_tokens": 226, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 41b1c021-00a9-4c0a-bc4e-5a0e873befa0
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 33, "prompt_tokens": 243, "total_tokens": 276, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: bd1d14f3-10a2-4a73-a7e8-6775dc833632
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 31, "prompt_tokens": 280, "total_tokens": 311, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 9aa97cb6-7424-4bd3-9b9a-2971aa2c833f
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 34, "prompt_tokens": 320, "total_tokens": 354, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 693c0ba8-18fc-4114-8839-cdd150525cd8
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 30, "prompt_tokens": 358, "total_tokens": 388, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: f50f7993-69e9-442b-bb2f-8642aecd97a7
thread_id: a33d2ce9-4ef1-4bf2-8e6a-a4a2509c8676
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 34, "prompt_tokens": 392, "total_tokens": 426, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: b9ad5182-1819-4524-ba3d-d482638db7a3
thread_id: fe437224-a9ea-4762-a4d5-3279d71a6f3d
status: completed
model: gpt-4o
tools: null
tool_choice: auto
response_format: null
usage:
{"completion_tokens": 9, "prompt_tokens": 67, "total_tokens": 76, "completion_tokens_details": {"audio_tokens": null, "reasoning_tokens": 0}, "prompt_tokens_details": {"audio_tokens": null, "cached_tokens": 0}}


id: 4f20e5b0-a815-40c7-9c36-c8ed15dba189
thread_id: fe437224-a9ea-4762-a4d5-3279d71a6f3d
status: failed
model: gpt-4o
tool_choice: auto
response_format: null
last_error:
Error in API call: Object of type ChatCompletionDeltaToolCall is not JSON serializable

Full error: TypeError('Object of type ChatCompletionDeltaToolCall is not JSON serializable')

tools:
"[{\"type\": \"function\", \"function\": {\"name\": \"create_file\", \"description\": \"Create a new file in the workspace\", \"parameters\": {\"type\": \"object\", \"properties\": {\"file_path\": {\"type\": \"string\", \"description\": \"The relative path of the file to create\"}, \"content\": {\"type\": \"string\", \"description\": \"The content to write to the file\"}}, \"required\": [\"file_path\", \"content\"]}}}]"


