jbcallaghan

Results 11 comments of jbcallaghan

I am using the following: @cl.data_layer def data_layer(): storage_client = S3StorageClient(bucket=s3_bucket,endpoint_url=s3_endpoint_url, aws_access_key_id=s3_access_key_id, aws_secret_access_key=s3_secret_access_key, verify=False) db_connection = f"postgresql://{db_username}:{db_password}@{db_endpoint}/{db_database}" return ChainlitDataLayer(database_url=db_connection,storage_client=storage_client)

ChainlitDataLayer is not my custom data layer, it's the official Chainlit one. from chainlit.data.chainlit_data_layer import ChainlitDataLayer I also tried the below, but the thread_id error occurs before cl.on_chat_start. @cl.on_chat_start async...

The issue seems to be that on a new chat session, there isn't a thread in the database when get_thread_author is called. This is a new requirement introduced with PR...

I can confirm this is only an issue when using co-pilot mode, so there seems to be a fundamental flaw in the design, where the changes made in 2..8.5 break...

> But then for some reason e2e tests succeed... I made PR anyway Thank you. It seems to stem from the way co-pilot uses custom auth and a JWT token,...

@asvishnyakov would it be possible to add an additional check? @sio.on("connect") # pyright: ignore [reportOptionalCall] async def connect(sid: str, environ, auth): user: User | PersistedUser | None = None token:...

All tool functions are asynchronous and awaited, but this is not relevant as I am streaming thinking into the step asynchronously, not tool calls. Clocks are not the issue either...

The issue seems to be the following: 2.8.4 (works): @sio.on("connect") # pyright: ignore [reportOptionalCall] async def connect(sid, environ, auth): 2.8.5 (broken): @sio.on("connect") # pyright: ignore [reportOptionalCall] async def connect(sid: str,...

> n only be caused by passing non-existing thread ID to get_thread_author Sorry, that was a red herring. At first I thought that the token wasn't being retrieved, but it...

In answer to your question, this is an example of the thread value: ValueError: Thread d7472f51-b3d2-4361-835d-04a54c3f8cb0 not found