You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we're specifying specific version numbers for AI models from Gemini, Claude, and Chatgpt directly in our code (gemini-2.0-flash-thinking-exp-01-21, claude-3-5-sonnet-20241022). This approach requires manual updates whenever new model versions are released, leading to potential maintenance overhead and the risk of using outdated models.
Gemini
According to the Gemini documentation, using model aliases like gemini-2.0-flash-thinking-exp allows you to access the latest version of the model without needing to change the model name in your code when updates occur.
According to the Claude Documentation, you can use aliases like "claude-3-5-sonnet-latest" to always target the latest version. Alternatively, using date specific aliases like "claude-3-5-sonnet-20241022" provides consistency by locking in a specific model snapshot.
Similar to Claude, OpenAI also offers "latest" aliases for Chatgpt models, such as "chatgpt-4o-latest". This is detailed in the OpenAI Models documentation.
Here's an example of using Chatgpt model aliases:
constopenaiModels=[{value: "gpt-4o",label: "Chatgpt 4o"},// Assuming this resolves to the latest or "chatgpt-4o-latest"{value: "gpt-4o-mini",label: "Chatgpt 4o Mini"},{value: "gpt-o1-mini",label: "Chatgpt o1 Mini"},{value: "gpt-o1",label: "Chatgpt o1"},{value: "gpt-o3-mini",label: "Chatgpt o3 Mini"},];
The text was updated successfully, but these errors were encountered:
gemini-2.0-flash-thinking-exp for codebases under ~1M tokens (keep the existing switch over size
gemini-2.0-pro-exp for codebases over that size (it's the only model that can go over 1M tokens)
Currently, we're specifying specific version numbers for AI models from Gemini, Claude, and Chatgpt directly in our code (
gemini-2.0-flash-thinking-exp-01-21
,claude-3-5-sonnet-20241022
). This approach requires manual updates whenever new model versions are released, leading to potential maintenance overhead and the risk of using outdated models.Gemini
According to the Gemini documentation, using model aliases like
gemini-2.0-flash-thinking-exp
allows you to access the latest version of the model without needing to change the model name in your code when updates occur.Here's an example of using Gemini model aliases:
Claude
According to the Claude Documentation, you can use aliases like "claude-3-5-sonnet-latest" to always target the latest version. Alternatively, using date specific aliases like "claude-3-5-sonnet-20241022" provides consistency by locking in a specific model snapshot.
Here's an example of Claude model configuration:
Chatgpt
Similar to Claude, OpenAI also offers "latest" aliases for Chatgpt models, such as "chatgpt-4o-latest". This is detailed in the OpenAI Models documentation.
Here's an example of using Chatgpt model aliases:
The text was updated successfully, but these errors were encountered: