MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / main

Function main

examples/05_provider_selection.py:159–184  ·  view source on GitHub ↗

Run all demos.

()

Source from the content-addressed store, hash-verified

157
158
159async def main():
160 """Run all demos."""
161 print("\n🚀 LLM Provider Selection Demo")
162 print("This demo shows how to use LLMClient with different providers.")
163 print("Make sure you have configured API key in config.yaml.")
164
165 try:
166 # Demo default provider
167 await demo_default_provider()
168
169 # Demo Anthropic provider
170 await demo_anthropic_provider()
171
172 # Demo OpenAI provider
173 await demo_openai_provider()
174
175 # Demo provider comparison
176 await demo_provider_comparison()
177
178 print("\n✅ All demos completed successfully!")
179
180 except Exception as e:
181 print(f"\n❌ Error: {e}")
182 import traceback
183
184 traceback.print_exc()
185
186
187if __name__ == "__main__":

Callers 1

Calls 4

demo_default_providerFunction · 0.85
demo_anthropic_providerFunction · 0.85
demo_openai_providerFunction · 0.85
demo_provider_comparisonFunction · 0.85

Tested by

no test coverage detected