We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446361a commit f005988Copy full SHA for f005988
libs/community/langchain_community/callbacks/openai_info.py
@@ -218,12 +218,17 @@ def standardize_model_name(
218
or model_name.startswith("gpt-3.5")
219
or model_name.startswith("gpt-35")
220
or model_name.startswith("o1-")
221
+ or model_name.startswith("o3-")
222
or ("finetuned" in model_name and "legacy" not in model_name)
223
):
224
return model_name + "-completion"
225
if (
226
token_type == TokenType.PROMPT_CACHED
- and (model_name.startswith("gpt-4o") or model_name.startswith("o1"))
227
+ and (
228
+ model_name.startswith("gpt-4o")
229
+ or model_name.startswith("o1")
230
+ or model_name.startswith("o3")
231
+ )
232
and not (model_name.startswith("gpt-4o-2024-05-13"))
233
234
return model_name + "-cached"
0 commit comments