You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# pull the OAI assistant thread
with literalai_client.thread() as thread:
for run in runs:
for step in run:
# log steps
for message in messages_from_openai_thread:
# log message in literalai
Create a method to log threads, runs of OpenAI Assistants. Check https://platform.openai.com/docs/assistants/overview.
Thread API: https://docs.literalai.com/python-client/api-reference/thread
Step API: https://docs.literalai.com/python-client/api-reference/step (steps can be step, runs, messages)
Generation API: https://docs.literalai.com/python-client/api-reference/api#create-generation
Example here: https://github.com/Chainlit/literalai-typescript/blob/main/src/instrumentation/openai-syncer.ts
The text was updated successfully, but these errors were encountered: