Spaces:
Runtime error
Runtime error
File size: 616 Bytes
b97f6e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from typing import Optional, Union
from pydantic import BaseModel
class OpenAIinput(BaseModel):
model: str = "fastertransformer"
prompt: Optional[str]
suffix: Optional[str]
max_tokens: Optional[int] = 16
temperature: Optional[float] = 0.6
top_p: Optional[float] = 1.0
n: Optional[int] = 1
stream: Optional[bool]
logprobs: Optional[int] = None
echo: Optional[bool]
stop: Optional[Union[str, list]]
presence_penalty: Optional[float] = 0
frequency_penalty: Optional[float] = 1
best_of: Optional[int] = 1
logit_bias: Optional[dict]
user: Optional[str]
|