mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Improve tools support in OpenaiTemplate and GeminiPro
Update models in DDG, PerplexityLabs, Gemini Fix issues with curl_cffi in new versions
This commit is contained in:
parent
c3ed6d0f8f
commit
e53483d85b
33 changed files with 300 additions and 172 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import unittest
|
||||
|
||||
import g4f.debug
|
||||
|
||||
g4f.debug.version_check = False
|
||||
|
||||
from .asyncio import *
|
||||
from .backend import *
|
||||
from .main import *
|
||||
|
|
|
|||
|
|
@ -6,8 +6,12 @@ from g4f.errors import VersionNotFoundError
|
|||
DEFAULT_MESSAGES = [{'role': 'user', 'content': 'Hello'}]
|
||||
|
||||
class TestGetLastProvider(unittest.TestCase):
|
||||
|
||||
def test_get_latest_version(self):
|
||||
current_version = g4f.version.utils.current_version
|
||||
if current_version is not None:
|
||||
self.assertIsInstance(g4f.version.utils.current_version, str)
|
||||
self.assertIsInstance(g4f.version.utils.latest_version, str)
|
||||
try:
|
||||
self.assertIsInstance(g4f.version.utils.latest_version, str)
|
||||
except VersionNotFoundError:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue