gpt4free/g4f/typing.py

16 行
412 B
Python
Raw 通常表示 履歴

2023-05-13 18:39:01 +09:00
from typing import Dict, NewType, Union, Optional, List, get_type_hints
sha256 = NewType('sha_256_hash', str)
2023-05-17 08:01:24 +09:00
2023-05-13 18:39:01 +09:00
class MetaModels(type):
def __str__(cls):
output: List = [
f'class Engines:\n',
f' class {cls.gpt_35_turbo.__name__}:',
' ...',
f' class {cls.gpt_4.__name__}:',
' ...'
]
2023-05-17 07:55:27 +09:00
return '\n'.join(output)