Documentation
¶
Overview ¶
This sample demonstrates the DashScope plugin for Alibaba Cloud's Qwen models: a streaming flow that generates a joke with a model pinned through dashscope.ModelRef and its typed config.
Run it:
export DASHSCOPE_API_KEY=... go run .
Or with the Dev UI, to call the flow from a browser and read a trace of every run at http://localhost:4000/traces:
curl -sL cli.genkit.dev | bash # install the Genkit CLI, once genkit start -- go run .
Or over HTTP. Streaming needs ?stream=true:
curl -N -X POST 'http://localhost:8080/jokesFlow?stream=true' \
-H "Content-Type: application/json" \
-d '{"data": {"topic": "bananas"}}'
Click to show internal directories.
Click to hide internal directories.