simonw / simonw/llm

On Windows, trouble passing more than 2 arguments.

Open
#291 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

H:
λ llm -t recipe -p ingredients 'sausages, milk, eggs' -p country Germany
Usage: llm prompt [OPTIONS] [PROMPT]
Try 'llm prompt --help' for help.

Error: Got unexpected extra argument (eggs')

H:
λ llm -t recipe -p ingredients 'sausages, milk' -p country Germany
German Sausage and Sauerkraut Skillet
Ingredients:

  • 4 German sausages
  • 2 tablespoons vegetable oil
  • 1 onion, sliced
  • 2 cloves garlic, minced
  • 2 cups sauerkraut, rinsed and drained
  • 1 green apple, peeled, cored, and sliced
  • 1 teaspoon caraway seeds
  • 1 tablespoon Dijon mustard
  • 1/2 cup chicken broth
  • Salt and pepper, to taste
  • Chopped fresh parsley, for garnish

Instructions:

  1. In a large skillet, heat the vegetable oil over medium heat. Add the German sausages and cook until browned on all sides. Remove the sausages from the skillet and set aside.
  2. In the same skillet, add the sliced onion and minced garlic. Cook until the onion is translucent and fragrant, about 5 minutes.
  3. Add the rinsed and drained sauerkraut, sliced apple, and caraway seeds to the skillet. Stir well to combine.
  4. In a small bowl, whisk together the Dijon mustard and chicken broth. Pour the mixture over the sauerkraut in the skillet and stir to coat.
  5. Return the browned sausages to the skillet, nestling them into the sauerkraut mixture. Reduce the heat to low, cover the skillet, and simmer for 15-20 minutes, or until the sausages are cooked through and the flavors have melded together.
  6. Season with salt and pepper to taste. Serve the sausages and sauerkraut skillet hot, garnished with chopped fresh parsley. Enjoy this authentic German dish with boiled potatoes or crusty bread.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two llm prompt commands shown in the issue on Windows, focusing on how the CLI parses the quoted prompt argument. Done means a prompt containing three comma-separated items is accepted consistently with the two-item example, without regressing normal argument handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.