plano/demos/getting_started/weather_forecast/README.md

1 KiB

Function calling

This demo shows how you can use Plano's core function calling capabilities.

Starting the demo

  1. Please make sure the pre-requisites are installed correctly

  2. Start Plano

  3. sh run_demo.sh
    
  4. Test with curl:

    curl http://localhost:10000/v1/chat/completions \
      -H "Content-Type: application/json" \
      -d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "how is the weather in San Francisco?"}]}'
    

Here is a sample interaction, image

Using the Chat UI and Tracing (optional)

To start AnythingLLM (chat UI) and other optional services, pass --with-ui:

sh run_demo.sh --with-ui

Stopping Demo

  1. To end the demo, run the following command:
    sh run_demo.sh down