added main module for accessing all services

This commit is contained in:
Raju Komati
2023-04-28 00:40:43 +05:30
parent 25428d58d5
commit 920fe19608
63 changed files with 511 additions and 443 deletions

View File

@@ -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