@@ -54,6 +54,16 @@ Developing an intelligent application with AI Agent Script Engine involves just
54
54
* [ AI Guide App For PPE Guide] ( ./lib/guide/ ) - WIP
55
55
* ` ai run guide --streamEcho line ` in the project root folder to run the guide
56
56
* [ AI Terminal Shell] ( https://github.com/offline-ai/ai-shell )
57
+ * LLM Inference Providers:
58
+ * ` llamacpp ` : llama.cpp server as the default local LLM provider. If no ` provider ` is specified, ` llamacpp ` is used.
59
+ * ` openai ` : Also supports OpenAI-compatible service API providers.
60
+ * ` --provider openai://chatgpt-4o-latest --apiKey “sk-XXX” `
61
+
62
+ Note: Limitations of OpenAI-Compatible Service API Providers
63
+
64
+ 1 . OpenAI must be a large model (` gpt-4o ` ) released after ` 2024-07-18 ` to support ` json-schema ` . Before this date, only ` json ` is guaranteed, not the ` json-schema ` .
65
+ 2 . All ` siliconflow ` models only guarantee ` json ` support, not ` json-schema ` support.
66
+ 3 . ` [[Fruit:|Apple|Banana]] ` : Syntax for forcing AI to choose either Apple or Banana will be invalid.
57
67
58
68
## [ PPE CLI Command] ( ./lib/guide/cli.md )
59
69
@@ -171,7 +181,7 @@ $ npm install -g @offline-ai/cli
171
181
$ ai COMMAND
172
182
running command...
173
183
$ ai (--version)
174
- @offline-ai/cli/0.5.6 linux-x64 node-v20.17.0
184
+ @offline-ai/cli/0.5.7 linux-x64 node-v20.17.0
175
185
$ ai --help [COMMAND]
176
186
USAGE
177
187
$ ai COMMAND
@@ -349,31 +359,45 @@ Specific script instruction manual see: [Programmable Prompt Engine Specificatio
349
359
# Commands
350
360
351
361
<!-- commands -->
352
- * [ ` ai agent ` ] ( #ai-agent )
353
- * [ ` ai autocomplete [SHELL] ` ] ( #ai-autocomplete-shell )
354
- * [ ` ai brain [NAME] ` ] ( #ai-brain-name )
355
- * [ ` ai brain dn [NAME] ` ] ( #ai-brain-dn-name )
356
- * [ ` ai brain down [NAME] ` ] ( #ai-brain-down-name )
357
- * [ ` ai brain download [NAME] ` ] ( #ai-brain-download-name )
358
- * [ ` ai brain list [NAME] ` ] ( #ai-brain-list-name )
359
- * [ ` ai brain refresh ` ] ( #ai-brain-refresh )
360
- * [ ` ai brain search [NAME] ` ] ( #ai-brain-search-name )
361
- * [ ` ai config [ITEM_NAME] ` ] ( #ai-config-item_name )
362
- * [ ` ai config save [DATA] ` ] ( #ai-config-save-data )
363
- * [ ` ai help [COMMAND] ` ] ( #ai-help-command )
364
- * [ ` ai plugins ` ] ( #ai-plugins )
365
- * [ ` ai plugins add PLUGIN ` ] ( #ai-plugins-add-plugin )
366
- * [ ` ai plugins:inspect PLUGIN... ` ] ( #ai-pluginsinspect-plugin )
367
- * [ ` ai plugins install PLUGIN ` ] ( #ai-plugins-install-plugin )
368
- * [ ` ai plugins link PATH ` ] ( #ai-plugins-link-path )
369
- * [ ` ai plugins remove [PLUGIN] ` ] ( #ai-plugins-remove-plugin )
370
- * [ ` ai plugins reset ` ] ( #ai-plugins-reset )
371
- * [ ` ai plugins uninstall [PLUGIN] ` ] ( #ai-plugins-uninstall-plugin )
372
- * [ ` ai plugins unlink [PLUGIN] ` ] ( #ai-plugins-unlink-plugin )
373
- * [ ` ai plugins update ` ] ( #ai-plugins-update )
374
- * [ ` ai run [FILE] [DATA] ` ] ( #ai-run-file-data )
375
- * [ ` ai test ` ] ( #ai-test )
376
- * [ ` ai version ` ] ( #ai-version )
362
+ - [ Offline AI PPE CLI(WIP)] ( #offline-ai-ppe-cliwip )
363
+ - [ Quick Start] ( #quick-start )
364
+ - [ PPE CLI Command] ( #ppe-cli-command )
365
+ - [ Programmable Prompt Engine Language] ( #programmable-prompt-engine-language )
366
+ - [ I. Core Structure] ( #i-core-structure )
367
+ - [ II. Reusability \& Configuration] ( #ii-reusability--configuration )
368
+ - [ III. AI Capabilities] ( #iii-ai-capabilities )
369
+ - [ IV. Message Text Formatting] ( #iv-message-text-formatting )
370
+ - [ V. Script Capabilities] ( #v-script-capabilities )
371
+ - [ Install] ( #install )
372
+ - [ Run] ( #run )
373
+ - [ Usage] ( #usage )
374
+ - [ Commands] ( #commands )
375
+ - [ ` ai agent ` ] ( #ai-agent )
376
+ - [ ` ai autocomplete [SHELL] ` ] ( #ai-autocomplete-shell )
377
+ - [ ` ai brain [NAME] ` ] ( #ai-brain-name )
378
+ - [ ` ai brain dn [NAME] ` ] ( #ai-brain-dn-name )
379
+ - [ ` ai brain down [NAME] ` ] ( #ai-brain-down-name )
380
+ - [ ` ai brain download [NAME] ` ] ( #ai-brain-download-name )
381
+ - [ ` ai brain list [NAME] ` ] ( #ai-brain-list-name )
382
+ - [ ` ai brain refresh ` ] ( #ai-brain-refresh )
383
+ - [ ` ai brain search [NAME] ` ] ( #ai-brain-search-name )
384
+ - [ ` ai config [ITEM_NAME] ` ] ( #ai-config-item_name )
385
+ - [ ` ai config save [DATA] ` ] ( #ai-config-save-data )
386
+ - [ ` ai help [COMMAND] ` ] ( #ai-help-command )
387
+ - [ ` ai plugins ` ] ( #ai-plugins )
388
+ - [ ` ai plugins add PLUGIN ` ] ( #ai-plugins-add-plugin )
389
+ - [ ` ai plugins:inspect PLUGIN... ` ] ( #ai-pluginsinspect-plugin )
390
+ - [ ` ai plugins install PLUGIN ` ] ( #ai-plugins-install-plugin )
391
+ - [ ` ai plugins link PATH ` ] ( #ai-plugins-link-path )
392
+ - [ ` ai plugins remove [PLUGIN] ` ] ( #ai-plugins-remove-plugin )
393
+ - [ ` ai plugins reset ` ] ( #ai-plugins-reset )
394
+ - [ ` ai plugins uninstall [PLUGIN] ` ] ( #ai-plugins-uninstall-plugin )
395
+ - [ ` ai plugins unlink [PLUGIN] ` ] ( #ai-plugins-unlink-plugin )
396
+ - [ ` ai plugins update ` ] ( #ai-plugins-update )
397
+ - [ ` ai run [FILE] [DATA] ` ] ( #ai-run-file-data )
398
+ - [ ` ai test ` ] ( #ai-test )
399
+ - [ ` ai version ` ] ( #ai-version )
400
+ - [ Credit] ( #credit )
377
401
378
402
## ` ai agent `
379
403
@@ -401,7 +425,7 @@ EXAMPLES
401
425
$ ai agent publish <agent-name>
402
426
```
403
427
404
- _ See code: [ src/commands/agent/index.ts] ( https://github.com/offline-ai/cli/blob/v0.5.6 /src/commands/agent/index.ts ) _
428
+ _ See code: [ src/commands/agent/index.ts] ( https://github.com/offline-ai/cli/blob/v0.5.7 /src/commands/agent/index.ts ) _
405
429
406
430
## ` ai autocomplete [SHELL] `
407
431
0 commit comments