[PR #702] [CLOSED] Fix curl example in README templates #701

Closed
opened 2026-02-15 20:15:55 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/702
Author: @garritfra
Created: 7/8/2025
Status: Closed

Base: mainHead: bugfix/readme-template-curl-command


📝 Commits (1)

  • 587d698 Fix curl example in README templates

📊 Changes

10 files changed (+10 additions, -10 deletions)

View changed files

📝 packages/create-llama/templates/components/agents/python/blog/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/agents/python/financial_report/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/agents/python/form_filling/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/agentic_rag/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/code_generator/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/deep_research/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/document_generator/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/financial_report/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/python/hitl/README-template.md (+1 -1)
📝 packages/create-llama/templates/components/use-cases/typescript/hitl/README-template.md (+1 -1)

📄 Description

Currently, running the curl command generated by create-llama yields an error:

$ curl --location 'localhost:8000/api/chat' \
--header 'Content-Type: application/json' \
--data '{ "messages": [{ "role": "user", "content": "What standards for a letter exist?" }] }'

{"detail":[{"type":"missing","loc":["body","id"],"msg":"Field required","input":{"messages":[{"role":"user","content":"What standards for a letter exist?"}]}}]}%   

I wasn't sure if the ID field should be optional or not. If it is supposed to be optional, I'd be happy to create a PR for that.

Summary by CodeRabbit

  • Documentation
    • Updated example curl commands in various README guides to include an "id" field in the JSON payload for the /api/chat endpoint, providing clearer instructions for request formatting.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/702 **Author:** [@garritfra](https://github.com/garritfra) **Created:** 7/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bugfix/readme-template-curl-command` --- ### 📝 Commits (1) - [`587d698`](https://github.com/run-llama/create-llama/commit/587d69878958f82077fb473e876f74179a8c7527) Fix curl example in README templates ### 📊 Changes **10 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/create-llama/templates/components/agents/python/blog/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/agents/python/financial_report/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/agents/python/form_filling/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/agentic_rag/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/code_generator/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/deep_research/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/document_generator/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/financial_report/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/python/hitl/README-template.md` (+1 -1) 📝 `packages/create-llama/templates/components/use-cases/typescript/hitl/README-template.md` (+1 -1) </details> ### 📄 Description Currently, running the curl command generated by create-llama yields an error: ``` $ curl --location 'localhost:8000/api/chat' \ --header 'Content-Type: application/json' \ --data '{ "messages": [{ "role": "user", "content": "What standards for a letter exist?" }] }' {"detail":[{"type":"missing","loc":["body","id"],"msg":"Field required","input":{"messages":[{"role":"user","content":"What standards for a letter exist?"}]}}]}% ``` I wasn't sure if the ID field should be optional or not. If it is supposed to be optional, I'd be happy to create a PR for that. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated example curl commands in various README guides to include an "id" field in the JSON payload for the `/api/chat` endpoint, providing clearer instructions for request formatting. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:55 -05:00
yindo closed this issue 2026-02-15 20:15:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#701