Skip to content

Commit b038d03

Browse files
fix: remove tsconfig props that may cause issue later (#97)
1 parent 2f64968 commit b038d03

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ See the [full API reference](./docs/reference.md) for complete documentation.
9898

9999
Use `llm.chat(..., { responseFormat })` when you need the assistant to return **machine-readable JSON**, optionally matching a **specific JSON Schema**.
100100

101-
### Simple JSON without any specific schema
102-
103101
```javascript
104102
// JSON mode (single JSON object)
105103
const { content: obj } = await llm.chat(messages, { responseFormat: { type: 'json_object' } });
106104
```
107-
108-
## JSON with a specific schema only
105+
<details>
106+
<summary>
107+
[Advanced] JSON output with a specific schema
108+
</summary>
109109

110110
```javascript
111111
const conversationHistory = [{ role: 'user', content: 'Add 2 and 3 and respond ONLY with JSON having sum and explanationSteps' }];
@@ -145,12 +145,13 @@ console.log(JSON.stringify(result))
145145
// If the model returns invalid JSON or fails schema validation,
146146
// `llm.chat(...)` throws a StructuredOutputError with `code` and `validation` details.
147147
```
148+
</details>
148149
149150
For all supported shapes (including plain schema objects) and parsing/validation behavior, see [`responseFormat` docs](./docs/reference.md#responseformat-json-mode--schema-mode).
150151
151152
## Supported LLM Providers
152153
153-
ResilientLLM comes with built-in support for all text models provided by **OpenAI**, **Anthropic**, **Google/Gemini**, **Ollama** API, etc.
154+
ResilientLLM comes with built-in support for all text chat completiion models provided by **OpenAI**, **Anthropic**, **Google/Gemini**, **Ollama** API, etc.
154155
155156
**Adding custom providers:** You can add support for other LLM providers (e.g., Together AI, Groq, self-hosted vLLM, or any OpenAI/Anthropic-compatible API) using `ProviderRegistry.configure()`. See the [Custom Provider Guide](./docs/custom-providers.md) for detailed instructions and examples.
156157

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"scripts": {
2121
"build": "tsc",
2222
"pretest": "tsc",
23+
"typecheck": "tsc --noEmit",
2324
"test": "tsc && mocha 'test/**/*.test.js' --ignore 'test/**/*.e2e.test.js'",
2425
"test:watch": "tsc --watch & mocha --watch 'test/**/*.test.js'",
2526
"test:coverage": "tsc && nyc mocha 'test/**/*.test.js'",

tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
"outDir": "dist",
1010
"rootDir": ".",
1111
"strict": true,
12-
"esModuleInterop": true,
13-
"skipLibCheck": true,
1412
"forceConsistentCasingInFileNames": true
1513
},
1614
"include": ["index.ts", "lib/**/*.ts"],

0 commit comments

Comments
 (0)