Skip to main content
Glama

Dingo MCP Server

by MigoXLab
sdk_mtbench101_llm.py1.23 kB
import os from dingo.config import InputArgs from dingo.exec import Executor if __name__ == '__main__': OPENAI_MODEL = 'deepseek-chat' OPENAI_URL = 'https://api.deepseek.com/v1' OPENAI_KEY = os.getenv("OPENAI_KEY") input_data = { "input_path": "../../test/data/test_mtbench101_jsonl.jsonl", "dataset": { "source": "local", "format": "multi_turn_dialog", "field": { "id": "id", "content": "history" # the column name of multi-turn dialogues, e.g.: history, dialogues } }, "executor": { "prompt_list": ["PromptTextQualityV3"], "result_save": { "bad": True, "good": True }, "multi_turn_mode": "all" }, "evaluator": { "llm_config": { "LLMTextQualityModelBase": { "model": OPENAI_MODEL, "key": OPENAI_KEY, "api_url": OPENAI_URL, } } } } input_args = InputArgs(**input_data) executor = Executor.exec_map["local"](input_args) result = executor.execute() print(result)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MigoXLab/dingo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server