fix tests
This commit is contained in:
parent
255a3205c0
commit
654ec7ce0d
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import * as readline from 'node:readline'
|
import * as readline from 'node:readline'
|
||||||
import { stdin, stdout } from 'node:process'
|
import { stdin, stdout } from 'node:process'
|
||||||
import { readFileSync } from 'node:fs'
|
import { readFileSync } from 'node:fs'
|
||||||
import { SchemaConverter } from './public/json-schema-to-grammar.mjs'
|
import { SchemaConverter } from './public_legacy/json-schema-to-grammar.mjs'
|
||||||
|
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
const grammarJsonSchemaFile = args.find(
|
const grammarJsonSchemaFile = args.find(
|
||||||
|
|
|
@ -124,7 +124,7 @@ You can use GBNF grammars:
|
||||||
- In [llama-cli](../examples/main), passed as the `--json` / `-j` flag
|
- In [llama-cli](../examples/main), passed as the `--json` / `-j` flag
|
||||||
- To convert to a grammar ahead of time:
|
- To convert to a grammar ahead of time:
|
||||||
- in CLI, with [examples/json_schema_to_grammar.py](../examples/json_schema_to_grammar.py)
|
- in CLI, with [examples/json_schema_to_grammar.py](../examples/json_schema_to_grammar.py)
|
||||||
- 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)
|
- 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)
|
||||||
|
|
||||||
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).
|
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).
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { readFileSync } from "fs"
|
import { readFileSync } from "fs"
|
||||||
import { SchemaConverter } from "../examples/server/public/json-schema-to-grammar.mjs"
|
import { SchemaConverter } from "../examples/server/public_legacy/json-schema-to-grammar.mjs"
|
||||||
|
|
||||||
const [, , file] = process.argv
|
const [, , file] = process.argv
|
||||||
const url = `file://${file}`
|
const url = `file://${file}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue