🔨 update(theb/__init__.py): add get_response method to Completion class
diff --git a/gpt4free/theb/__init__.py b/gpt4free/theb/__init__.py
index 852fe17bdc..0177194efb 100644
--- a/gpt4free/theb/__init__.py
+++ b/gpt4free/theb/__init__.py
@@ -46,7 +46,6 @@ def request(prompt: str, proxy: Optional[str] = None):
         Completion.stream_completed = True
 
     @staticmethod
-
     def create(prompt: str, proxy: Optional[str] = None) -> Generator[str, None, None]:
         Completion.stream_completed = False
         
@@ -65,4 +64,13 @@ def create(prompt: str, proxy: Optional[str] = None) -> Generator[str, None, Non
 
     @staticmethod
     def handle_stream_response(response):
+        Completion.message_queue.put(response.decode())
+
+    @staticmethod
+    def get_response(prompt: str, proxy: Optional[str] = None) -> str:
+        response_list = []
+        for message in Completion.create(prompt, proxy):
+            response_list.append(message)
+        return ''.join(response_list)
+        
         Completion.message_queue.put(response.decode(errors='replace'))

The get_response method was added to the Completion class to allow for easier retrieval of the response from the API. This method takes in a prompt and an optional proxy and returns the response as a string. The method uses the create method to generate a generator object and then iterates over it to append each message to a list. Finally, the list is joined into a single string and returned. This allows for non stream usage of theb which can cause issues in async applications.