@mariozechner/pi-ai 0.5.11 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ npm install @mariozechner/pi-ai
|
|
|
26
26
|
```typescript
|
|
27
27
|
import { createLLM } from '@mariozechner/pi-ai';
|
|
28
28
|
|
|
29
|
-
const llm = createLLM('openai', 'gpt-
|
|
29
|
+
const llm = createLLM('openai', 'gpt-5-mini');
|
|
30
30
|
|
|
31
31
|
const response = await llm.complete({
|
|
32
32
|
messages: [{ role: 'user', content: 'Hello!' }]
|
|
@@ -139,7 +139,7 @@ try {
|
|
|
139
139
|
|
|
140
140
|
### OpenAI Reasoning (o1, o3)
|
|
141
141
|
```typescript
|
|
142
|
-
const llm = createLLM('openai', '
|
|
142
|
+
const llm = createLLM('openai', 'gpt-5-mini');
|
|
143
143
|
|
|
144
144
|
await llm.complete(context, {
|
|
145
145
|
reasoningEffort: 'medium' // 'minimal' | 'low' | 'medium' | 'high'
|
|
@@ -279,10 +279,10 @@ OPENROUTER_API_KEY=sk-or-...
|
|
|
279
279
|
When set, you can omit the API key parameter:
|
|
280
280
|
```typescript
|
|
281
281
|
// Uses OPENAI_API_KEY from environment
|
|
282
|
-
const llm = createLLM('openai', 'gpt-
|
|
282
|
+
const llm = createLLM('openai', 'gpt-5-mini');
|
|
283
283
|
|
|
284
284
|
// Or pass explicitly
|
|
285
|
-
const llm = createLLM('openai', 'gpt-
|
|
285
|
+
const llm = createLLM('openai', 'gpt-5-mini', 'sk-...');
|
|
286
286
|
```
|
|
287
287
|
|
|
288
288
|
## License
|