[PR #46] Add function calling and structured outputs support #751

Open
opened 2026-10-26 21:26:23 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepSeek-R1/pull/46
Author: @jasonkneen
Created: 1/22/2025
Status: 🔄 Open

Base: main ← Head: add-function-calling


📝 Commits (1)

  • 449333d Add function calling and structured outputs support

📊 Changes

5 files changed (+213 additions, -3 deletions)

View changed files

📝 README.md (+59 -3)
➕ src/model.py (+42 -0)
➕ src/utils.py (+28 -0)
➕ tests/test_model.py (+38 -0)
➕ tests/test_utils.py (+46 -0)

📄 Description

Fixes #9

Add support for function calling and structured outputs.

  • README.md

    • Add a section about function calling and structured outputs.
    • Include examples of using function calling and structured outputs.
    • Mention the future plans for these features.
  • src/model.py

    • Add support for structured data formats like JSON and XML.
    • Implement function calling capabilities.
    • Include integration with external tools and APIs.
  • src/utils.py

    • Add utility functions for parsing and generating structured data formats.
    • Include helper functions for function calling.
  • tests/test_model.py

    • Add unit tests for structured data format support.
    • Include tests for function calling capabilities.
    • Add tests for API integration.
  • tests/test_utils.py

    • Add unit tests for utility functions related to structured data formats.
    • Include tests for helper functions for function calling.

For more details, open the Copilot Workspace session.


🔄 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/deepseek-ai/DeepSeek-R1/pull/46 **Author:** [@jasonkneen](https://github.com/jasonkneen) **Created:** 1/22/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-function-calling` --- ### 📝 Commits (1) - [`449333d`](https://github.com/deepseek-ai/DeepSeek-R1/commit/449333db91be6796d76b1ddda272130a1e36e9ad) Add function calling and structured outputs support ### 📊 Changes **5 files changed** (+213 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+59 -3) ➕ `src/model.py` (+42 -0) ➕ `src/utils.py` (+28 -0) ➕ `tests/test_model.py` (+38 -0) ➕ `tests/test_utils.py` (+46 -0) </details> ### 📄 Description Fixes #9 Add support for function calling and structured outputs. * **README.md** - Add a section about function calling and structured outputs. - Include examples of using function calling and structured outputs. - Mention the future plans for these features. * **src/model.py** - Add support for structured data formats like JSON and XML. - Implement function calling capabilities. - Include integration with external tools and APIs. * **src/utils.py** - Add utility functions for parsing and generating structured data formats. - Include helper functions for function calling. * **tests/test_model.py** - Add unit tests for structured data format support. - Include tests for function calling capabilities. - Add tests for API integration. * **tests/test_utils.py** - Add unit tests for utility functions related to structured data formats. - Include tests for helper functions for function calling. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/deepseek-ai/DeepSeek-R1/pull/46?shareId=fee3b05f-6de2-4b4c-8f30-f0efdbc88876). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-R1#751
No description provided.