Skip to content

Commit 654ec7c

Browse files
committed
fix tests
1 parent 255a320 commit 654ec7c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/server/chat.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as readline from 'node:readline'
22
import { stdin, stdout } from 'node:process'
33
import { readFileSync } from 'node:fs'
4-
import { SchemaConverter } from './public/json-schema-to-grammar.mjs'
4+
import { SchemaConverter } from './public_legacy/json-schema-to-grammar.mjs'
55

66
const args = process.argv.slice(2);
77
const grammarJsonSchemaFile = args.find(

grammars/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can use GBNF grammars:
124124
- In [llama-cli](../examples/main), passed as the `--json` / `-j` flag
125125
- To convert to a grammar ahead of time:
126126
- in CLI, with [examples/json_schema_to_grammar.py](../examples/json_schema_to_grammar.py)
127-
- in JavaScript with [json-schema-to-grammar.mjs](../examples/server/public/json-schema-to-grammar.mjs) (this is used by the [server](../examples/server)'s Web UI)
127+
- in JavaScript with [json-schema-to-grammar.mjs](../examples/server/public_legacy/json-schema-to-grammar.mjs) (this is used by the [server](../examples/server)'s Web UI)
128128

129129
Take a look at [tests](../tests/test-json-schema-to-grammar.cpp) to see which features are likely supported (you'll also find usage examples in https://github.com/ggerganov/llama.cpp/pull/5978, https://github.com/ggerganov/llama.cpp/pull/6659 & https://github.com/ggerganov/llama.cpp/pull/6555).
130130

tests/run-json-schema-to-grammar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { readFileSync } from "fs"
2-
import { SchemaConverter } from "../examples/server/public/json-schema-to-grammar.mjs"
2+
import { SchemaConverter } from "../examples/server/public_legacy/json-schema-to-grammar.mjs"
33

44
const [, , file] = process.argv
55
const url = `file://${file}`

0 commit comments

Comments
 (0)