Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Mar 13, 2024
1 parent 560d1de commit 445564a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions litellm/llms/together_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def completion(
optional_params[k] = v

print_verbose(f"CUSTOM PROMPT DICT: {custom_prompt_dict}; model: {model}")
print(f"CUSTOM PROMPT DICT: {custom_prompt_dict}; model: {model}")
if model in custom_prompt_dict:
# check if the model has a registered custom prompt
model_prompt_details = custom_prompt_dict[model]
Expand Down
3 changes: 2 additions & 1 deletion litellm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3583,7 +3583,7 @@ def cost_per_token(
model_cost_ref = litellm.model_cost
model_with_provider = model
if custom_llm_provider is not None:
model_with_provider = model
model_with_provider = custom_llm_provider + "/" + model
if region_name is not None:
model_with_provider_and_region = (
f"{custom_llm_provider}/{region_name}/{model}"
Expand Down Expand Up @@ -3852,6 +3852,7 @@ def completion_cost(
if (
"togethercomputer" in model
or "together_ai" in model
or "together" in model
or custom_llm_provider == "together_ai"
):
# together ai prices based on size of llm
Expand Down

0 comments on commit 445564a

Please sign in to comment.