From 136f3f2bbc6300502fc58169aa9c88a816ea4bed Mon Sep 17 00:00:00 2001 From: csgulati09 Date: Fri, 22 Mar 2024 18:23:10 +0530 Subject: [PATCH] feat: beta.assistants and beta.threads + sub method DevEx --- portkey_ai/api_resources/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/portkey_ai/api_resources/client.py b/portkey_ai/api_resources/client.py index c60d5c8..d927906 100644 --- a/portkey_ai/api_resources/client.py +++ b/portkey_ai/api_resources/client.py @@ -21,6 +21,9 @@ class Portkey(APIClient): models: apis.Models class beta: + assistants: apis.Assistants + threads: apis.Threads + def __init__(self, client: Portkey) -> None: self.assistants = apis.Assistants(client) self.threads = apis.Threads(client) @@ -106,6 +109,9 @@ class AsyncPortkey(AsyncAPIClient): models: apis.AsyncModels class beta: + assistants: apis.AsyncAssistants + threads: apis.AsyncThreads + def __init__(self, client: AsyncPortkey) -> None: self.assistants = apis.AsyncAssistants(client) self.threads = apis.AsyncThreads(client)