diff options
Diffstat (limited to '')
-rw-r--r-- | gpt4free/forefront/typing.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gpt4free/forefront/typing.py b/gpt4free/forefront/typing.py new file mode 100644 index 00000000..d6026e04 --- /dev/null +++ b/gpt4free/forefront/typing.py @@ -0,0 +1,26 @@ +from typing import Any, List + +from pydantic import BaseModel + + +class Choice(BaseModel): + text: str + index: int + logprobs: Any + finish_reason: str + + +class Usage(BaseModel): + prompt_tokens: int + completion_tokens: int + total_tokens: int + + +class ForeFrontResponse(BaseModel): + id: str + object: str + created: int + model: str + choices: List[Choice] + usage: Usage + text: str
\ No newline at end of file |