import unittest
from xgpt import Client

class TestClient(unittest.TestCase):
    def test_pollinations_completion(self):
        client = Client()
        messages = [{"role": "user", "content": "Say hello!"}]
        response = client.chat_completion(model="openai", messages=messages)
        self.assertIsInstance(response, str)
        self.assertTrue(len(response) > 0)
        print(f"\nResponse: {response}")

if __name__ == "__main__":
    unittest.main()
