[PR #8078] [MERGED] llama: update grammar test to expose lack of insertion order for JSON schema to grammar conversion #11351

Closed
opened 2025-11-12 16:12:10 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8078
Author: @ParthSareen
Created: 12/12/2024
Status: Merged
Merged: 12/19/2024
Merged by: @bmizerany

Base: mainHead: parth/document-grammar-order-mixup


📝 Commits (1)

  • a9e8584 llama: test key order preservation in schema_to_grammar

📊 Changes

2 files changed (+107 additions, -76 deletions)

View changed files

llama/grammar/grammar_test.go (+107 -0)
llama/grammar_test.go (+0 -76)

📄 Description

This test is updated with a more complex JSON schema to expose the lack of maintaining insertion order generated from json-schema-to-grammar

Documents behavior in: #7978


🔄 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/ollama/ollama/pull/8078 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 12/12/2024 **Status:** ✅ Merged **Merged:** 12/19/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `parth/document-grammar-order-mixup` --- ### 📝 Commits (1) - [`a9e8584`](https://github.com/ollama/ollama/commit/a9e858425aaf83fa5acc6c6ae37f90134944b94a) llama: test key order preservation in schema_to_grammar ### 📊 Changes **2 files changed** (+107 additions, -76 deletions) <details> <summary>View changed files</summary> ➕ `llama/grammar/grammar_test.go` (+107 -0) ➖ `llama/grammar_test.go` (+0 -76) </details> ### 📄 Description This test is updated with a more complex JSON schema to expose the lack of maintaining insertion order generated from `json-schema-to-grammar` Documents behavior in: #7978 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-12 16:12:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#11351