MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / get_agent_config

Function get_agent_config

utils/wei_utils.py:26–196  ·  view source on GitHub ↗
(model_type)

Source from the content-addressed store, hash-verified

24from utils.critic_utils import *
25
26def get_agent_config(model_type):
27 agent_config = {}
28 if model_type == 'qwen':
29 agent_config = {
30 "model_type": ModelType.DEEPINFRA_QWEN_2_5_72B,
31 "model_config": QwenConfig().as_dict(),
32 "model_platform": ModelPlatformType.DEEPINFRA,
33 }
34 elif model_type == 'gemini':
35 agent_config = {
36 "model_type": ModelType.DEEPINFRA_GEMINI_2_FLASH,
37 "model_config": GeminiConfig().as_dict(),
38 "model_platform": ModelPlatformType.DEEPINFRA,
39 'max_images': 99
40 }
41 elif model_type == 'phi4':
42 agent_config = {
43 "model_type": ModelType.DEEPINFRA_PHI_4_MULTIMODAL,
44 "model_config": QwenConfig().as_dict(),
45 "model_platform": ModelPlatformType.DEEPINFRA,
46 }
47 elif model_type == 'llama-4-scout-17b-16e-instruct':
48 agent_config = {
49 'model_type': ModelType.ALIYUN_LLAMA4_SCOUT_17B_16E,
50 'model_config': QwenConfig().as_dict(),
51 'model_platform': ModelPlatformType.QWEN,
52 'max_images': 99
53 }
54 elif model_type == 'qwen-2.5-vl-72b':
55 agent_config = {
56 'model_type': ModelType.QWEN_2_5_VL_72B,
57 'model_config': QwenConfig().as_dict(),
58 'model_platform': ModelPlatformType.QWEN,
59 'max_images': 99
60 }
61 elif model_type == 'gemma':
62 agent_config = {
63 "model_type": "google/gemma-3-4b-it",
64 "model_platform": ModelPlatformType.VLLM,
65 "model_config": VLLMConfig().as_dict(),
66 "url": 'http://localhost:5555/v1',
67 'max_images': 99
68 }
69 elif model_type == 'llava':
70 agent_config = {
71 "model_type": "llava-hf/llava-onevision-qwen2-7b-ov-hf",
72 "model_platform": ModelPlatformType.VLLM,
73 "model_config": VLLMConfig().as_dict(),
74 "url": 'http://localhost:8000/v1',
75 'max_images': 99
76 }
77 elif model_type == 'molmo-o':
78 agent_config = {
79 "model_type": "allenai/Molmo-7B-O-0924",
80 "model_platform": ModelPlatformType.VLLM,
81 "model_config": VLLMConfig().as_dict(),
82 "url": 'http://localhost:8000/v1',
83 'max_images': 99

Callers 13

new_pipeline.pyFile · 0.90
fill_and_style.pyFile · 0.50
apply_theme.pyFile · 0.50
deoverflow.pyFile · 0.50
parse_raw.pyFile · 0.50

Calls 6

QwenConfigClass · 0.90
GeminiConfigClass · 0.90
VLLMConfigClass · 0.90
ChatGPTConfigClass · 0.90
OpenRouterConfigClass · 0.90
as_dictMethod · 0.45

Tested by

no test coverage detected