Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiuLab/Taiwan-LLM
/ functions
Functions
16 in github.com/MiuLab/Taiwan-LLM
⨍
Functions
16
◇
Types & classes
2
↓ 41 callers
Function
register_conv_template
Register a new conversation template.
evaluation/conversation.py:271
↓ 10 callers
Method
append_message
Append a new message.
evaluation/conversation.py:207
↓ 7 callers
Function
get_anthropic_chat_response
( model: str, user_prompt: str, prefill: str = "" )
evaluation/run_tceval.py:97
↓ 7 callers
Function
get_openai_chat_response
model is "gpt-3.5-turbo-1106" or "gpt-4-1106-preview"
evaluation/run_tceval.py:76
↓ 3 callers
Function
get_conv_template
Get a conversation template.
evaluation/conversation.py:281
↓ 3 callers
Method
get_prompt
Get the prompt for generation.
evaluation/conversation.py:57
↓ 2 callers
Function
load_model_answer
(path: str)
evaluation/llm_eval.py:76
↓ 2 callers
Function
prefix_exact_match
(gold: str, pred: str)
evaluation/run_tceval.py:36
↓ 1 callers
Method
copy
(self)
evaluation/conversation.py:242
↓ 1 callers
Function
main
()
evaluation/run_tceval.py:63
↓ 1 callers
Function
parse_args
()
evaluation/run_tceval.py:43
Method
dict
(self)
evaluation/conversation.py:257
Method
set_system_message
Set the system message.
evaluation/conversation.py:203
Method
to_gradio_chatbot
Convert the conversation to gradio chatbot format.
evaluation/conversation.py:219
Method
to_openai_api_messages
Convert the conversation to OpenAI chat completion format.
evaluation/conversation.py:229
Method
update_last_message
Update the last output. The last message is typically set to be None when constructing the prompt, so we need to update it in-place a
evaluation/conversation.py:211