LLM Models
Using Gemini and other models as the Core LLM
These examples are similar to the Hello World (Spot)
example, except they use DeepSeek
, Gemini
or Grok
rather than OpenAI 4o
.
Emotion Detection with DeepSeek
This example process emotion detection and a simulated environment. It will request you to accept a prompt to on your camera, this is what it uses to capture your emotions.
Command
Code Explanation
Initialization Issues
- Issue: The Unitree SDK (likely for robot control) is missing.
- Impact: If using a robotic or hardware-based system, some features may not work.
Camera Initialization Warning
- Issue: A deprecated camera type is being used.
- Solution: Update the configuration to use AVCaptureDeviceTypeContinuityCamera instead.
WebSim (Simulation Environment) Setup
- A web-based simulation environment (WebSim) is successfully launched.
- Can be accessed at http://localhost:8000 for further interaction.
Emotion Detection System Running
- The system is detecting people’s emotions using computer vision.
- Initially, no person was detected, then it recognized emotions like angry, happy, and neutral.
API Authentication Error (DeepSeek LLM Failing)
- Issue: The system is trying to send a request to DeepSeek AI but gets a 401 Unauthorized error.
- Cause:
- API key is missing or incorrect.
- Authentication headers not set properly.
- Impact: No response from the AI, so no chatbot functionality.
- Fix: Add a valid API key to the system’s configuration.
- Summary of Key Issues & Fixes
Emotion Detection with Gemini
This example process emotion detection and a simulated environment. It will request you to accept a prompt to on your camera, this is what it uses to capture your emotions.
Command
Response
You can directly access other OpenAI style endpoints by specifying a custom API endpoint in your configuration file. To do this, provide an suitable base_url
and the api_key
for OpenAI, DeepSeek, or other providers. Possible base_url
choices are:
Was this page helpful?