MCPcopy Index your code
hub / github.com/showlab/Code2Video / get_api_and_output

Function get_api_and_output

src/agent.py:810–822  ·  view source on GitHub ↗
(API_name)

Source from the content-addressed store, hash-verified

808
809
810def get_api_and_output(API_name):
811 mapping = {
812 "gpt-41": (request_gpt41_token, "Chatgpt41"),
813 "claude": (request_claude_token, "CLAUDE"),
814 "gpt-5": (request_gpt5_token, "Chatgpt5"),
815 "gpt-4o": (request_gpt4o_token, "Chatgpt4o"),
816 "gpt-o4mini": (request_o4mini_token, "Chatgpto4mini"),
817 "Gemini": (request_gemini_token, "Gemini"),
818 }
819 try:
820 return mapping[API_name]
821 except KeyError:
822 raise ValueError("Invalid API model name")
823
824
825def build_and_parse_args():

Callers 1

agent.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected