1
0
Fork 0
GPT4FREE/gpt4free/forefront/typing.py

27 lines
411 B
Python
Raw Normal View History

2023-04-30 21:09:25 +00:00
from typing import Any, List
2023-05-01 14:34:45 +00:00
2023-04-30 21:09:25 +00:00
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
2023-05-01 14:34:45 +00:00
text: str