Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --schema filename in addition to --schema '{JSON}' #780

Closed
simonw opened this issue Feb 27, 2025 · 2 comments
Closed

Support --schema filename in addition to --schema '{JSON}' #780

simonw opened this issue Feb 27, 2025 · 2 comments
Labels
enhancement New feature or request schemas

Comments

@simonw
Copy link
Owner

simonw commented Feb 27, 2025

So you can do this:

llm --schema my.schema.json 'describe three dogs'
@simonw simonw added enhancement New feature or request schemas labels Feb 27, 2025
@simonw simonw added this to the 0.23 (schemas) milestone Feb 27, 2025
@simonw
Copy link
Owner Author

simonw commented Feb 27, 2025

Also consider llm --schema 4d1da05ad315ee72537b4f2c1f2361c4 where 4d1da05ad315ee72537b4f2c1f2361c4 is the ID of a previously logged schema.

simonw added a commit that referenced this issue Feb 27, 2025
Also implemented --schema ID lookup, refs #780
@simonw
Copy link
Owner Author

simonw commented Feb 27, 2025

Implemented in 6958a51

@simonw simonw closed this as completed Feb 27, 2025
simonw added a commit that referenced this issue Feb 27, 2025
simonw added a commit that referenced this issue Feb 27, 2025
simonw added a commit that referenced this issue Feb 27, 2025
* llm logs --schema option, refs #782
* --data and --data-array and --data-key options, refs #782
* Tests for llm logs --schema options, refs #785
* Also implemented --schema ID lookup, refs #780
* Using --data-key implies --data
* Docs for llm logs --schema and --data etc
simonw added a commit that referenced this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request schemas
Projects
None yet
Development

No branches or pull requests

1 participant