Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix docstring #3969

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions packages/phoenix-evals/src/phoenix/evals/models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ class OpenAIModel(BaseModel):
model (str, optional): Model name to use. In of azure, this is the deployment name such as
gpt-35-instant. Defaults to "gpt-4".
temperature (float, optional): What sampling temperature to use. Defaults to 0.0.
max_tokens (int, optional): The maximum number of tokens to generate in the completion.
-1 returns as many tokens as possible given the prompt and the models maximal context
size. Defaults to 256.
max_tokens (int | None, optional): The maximum number of tokens to generate in the
completion. To unset this limit, set `max_tokens` to `None`. Defaults to 256.
top_p (float, optional): Total probability mass of tokens to consider at each step.
Defaults to 1.
frequency_penalty (float, optional): Penalizes repeated tokens according to frequency.
Expand Down Expand Up @@ -123,7 +122,7 @@ class OpenAIModel(BaseModel):
base_url: Optional[str] = field(repr=False, default=None)
model: str = "gpt-4"
temperature: float = 0.0
max_tokens: int = 256
max_tokens: Optional[int] = 256
top_p: float = 1
frequency_penalty: float = 0
presence_penalty: float = 0
Expand Down
Loading