add gitee-ai model resources that are compatible with openai format

This commit is contained in:
vision
2024-12-21 17:24:32 +08:00
parent 16324e7283
commit abf79bf60c
2 changed files with 4 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ def num_tokens_from_messages(messages, model):
tokens_per_message = 3
tokens_per_name = 1
else:
logger.warn(f"num_tokens_from_messages() is not implemented for model {model}. Returning num tokens assuming gpt-3.5-turbo.")
logger.debug(f"num_tokens_from_messages() is not implemented for model {model}. Returning num tokens assuming gpt-3.5-turbo.")
return num_tokens_from_messages(messages, model="gpt-3.5-turbo")
num_tokens = 0
for message in messages: