Random experiments with LLM and other ML/AI models and algorithms.
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txtInstruct to generate JSON output and validate with Pydantic JSON schema.
python validate_output.pyDeepSeek V3 (neither R1) has no support to function/tool calling yet, but it seems we can hack it using a prompt to get present the tools + query to get tools calls required and then another prompt with the tools' evaluation results + original query. Not sure if that works for complex scenarios though.
python openrouter_deepseek_tools.pySimple example of client/server for SLOP and how to call from a hacky DeepSeek.
python slop_server_add.py
python slop_client_add.pySuper simple hello world using MCP server through a model that supports tools through OpenRouter.
python mcp_server_add.py
python openrouter_mcp.pyOnly supported LLMs (DeepSeek V3 doesn't support through OpenRouter yet)
python openrouter_tool_calling.py