Documentation
¶
Overview ¶
Command options sends a prompt with a system message and per-request options.
It shows the next step after the basic example: shape the model's behavior with a system prompt, control generation with StreamOptions, and inspect response metadata such as token usage, cost, and stop reason.
The API key is read from the provider's environment variable when StreamOptions.APIKey is empty:
DEEPSEEK_API_KEY=sk-... go run ./example/llm/options
Click to show internal directories.
Click to hide internal directories.