Skip to content

Commit

Permalink
add gitee-ai model resources that are compatible with openai format
Browse files Browse the repository at this point in the history
  • Loading branch information
6vision committed Dec 21, 2024
1 parent 16324e7 commit abf79bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bot/chatgpt/chat_gpt_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions common/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@

CLAUDE_3_HAIKU = "claude-3-haiku-20240307"

GITEE_AI_MODEL_LIST = ["Yi-34B-Chat", "InternVL2-8B", "deepseek-coder-33B-instruct", "InternVL2.5-26B", "Qwen2-VL-72B", "Qwen2.5-32B-Instruct", "glm-4-9b-chat", "codegeex4-all-9b", "Qwen2.5-Coder-32B-Instruct", "Qwen2.5-72B-Instruct", "Qwen2.5-7B-Instruct", "Qwen2-72B-Instruct", "Qwen2-7B-Instruct", "code-raccoon-v1", "Qwen2.5-14B-Instruct"]

MODEL_LIST = [
GPT35, GPT35_0125, GPT35_1106, "gpt-3.5-turbo-16k",
O1, O1_MINI, GPT_4o, GPT_4O_0806, GPT_4o_MINI, GPT4_TURBO, GPT4_TURBO_PREVIEW, GPT4_TURBO_01_25, GPT4_TURBO_11_06, GPT4, GPT4_32k, GPT4_06_13, GPT4_32k_06_13,
Expand All @@ -96,6 +98,7 @@
LINKAI_35, LINKAI_4_TURBO, LINKAI_4o
]

MODEL_LIST = MODEL_LIST + GITEE_AI_MODEL_LIST
# channel
FEISHU = "feishu"
DINGTALK = "dingtalk"

0 comments on commit abf79bf

Please sign in to comment.