Skip to content

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Fix documentation for dynamic model creation example

This PR fixes the documentation issue described in #1558.

Changes

  • Updated the dynamic model creation example in docs/concepts/models.md to use Field(description=description) instead of incorrectly using the description as a default value
  • Updated the imports to include Field from pydantic
  • Updated the JSON schema output example to show description instead of default

This change aligns the documentation with Pydantic's official documentation for dynamic model creation.

Link to Devin run

https://app.devin.ai/sessions/73b7d18e381a4feaa058d6ac34660262

Requested by

Jason Liu ([email protected])

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions github-actions bot added documentation Improvements or additions to documentation python Pull requests that update python code size:M This PR changes 30-99 lines, ignoring generated files. labels May 27, 2025
Copy link

cloudflare-workers-and-pages bot commented May 27, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
instructor 722418d Visit preview May 27 2025, 08:18 PM

@jxnl
Copy link
Collaborator

jxnl commented May 27, 2025

can you add some simple tests to verify this works

@jxnl jxnl closed this May 28, 2025
@jxnl jxnl reopened this Jun 3, 2025
@jxnl jxnl merged commit 121f901 into main Jun 3, 2025
25 of 28 checks passed
@jxnl jxnl deleted the devin/1748361381-fix-documentation-issue-1558 branch June 3, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python Pull requests that update python code size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant