Skip to content

Endpoint for organic chat tasks converted from instruct datasets#849

Open
besimray wants to merge 3 commits into
mainfrom
chat-native-api
Open

Endpoint for organic chat tasks converted from instruct datasets#849
besimray wants to merge 3 commits into
mainfrom
chat-native-api

Conversation

@besimray
Copy link
Copy Markdown
Collaborator

@besimray besimray commented Sep 18, 2025

High-level PR Summary

This PR implements functionality to convert instruct-style datasets to chat format tasks. It introduces a new endpoint and data model for creating chat tasks from instruction datasets. The implementation includes a new payload model NewTaskRequestInstructToChat that captures the necessary parameters for conversion, a new API endpoint /v1/tasks/create_chat_from_instruct, and associated functionality to transform the data format. The conversion process extracts input and output fields from instruct datasets and reformats them into standard chat message format with proper user and assistant roles.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 core/models/payload_models.py
2 validator/endpoints/tasks.py
3 validator/tasks/synthetic_scheduler.py
⚠️ Inconsistent Changes Detected
File Path Warning
validator/tasks/synthetic_scheduler.py A change in this file modifies the task type from CHATTASK to INSTRUCTTEXTTASK in the dataset selection function, which seems unrelated to the main PR purpose of converting instruct datasets to chat format.

Review by RecurseML

🔍 Review performed on 96c4563..9706c71

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (3)

validator/endpoints/tasks.py
core/models/payload_models.py
validator/tasks/synthetic_scheduler.py

Need help? Join our Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant