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

default gpt-4, failover #746

Merged
merged 2 commits into from
Jan 15, 2024
Merged

default gpt-4, failover #746

merged 2 commits into from
Jan 15, 2024

Conversation

zzstoatzz
Copy link
Collaborator

No description provided.

model: str = Field(
description="The default chat model to use.", default="gpt-3.5-turbo"
model: str = Field(description="The default chat model to use.", default="gpt-4")
_fallback_model: str = PrivateAttr(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest either making this public or moving it to a global variable in the client module; private settings are going to be very difficult to discover.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made a var in the client module in a657902

@@ -44,8 +44,9 @@ def __setattr__(self, name: str, value: Any) -> None:

class ChatCompletionSettings(MarvinSettings):
model_config = SettingsConfigDict(env_prefix="marvin_chat_completion_")
model: str = Field(
description="The default chat model to use.", default="gpt-3.5-turbo"
model: str = Field(description="The default chat model to use.", default="gpt-4")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
model: str = Field(description="The default chat model to use.", default="gpt-4")
model: str = Field(description="The default chat model to use.", default="gpt-4-1106-preview")

I think if you have GPT-4 you have the turbo preview, so this is better, cheaper and much larger context

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in a657902

@zzstoatzz zzstoatzz merged commit 34f3d0b into 2.0 Jan 15, 2024
14 checks passed
@zzstoatzz zzstoatzz deleted the default-model branch January 15, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants