@omp-provider-capabilities/mistral 0.1.1 → 0.2.0

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -0
  3. package/package.json +18 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Enver Francisco
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @omp-provider-capabilities/mistral
2
+
3
+ Mistral provider features for OMP: batch execution, Agents API, and Agent SDK wrapper.
4
+
5
+ ## Features
6
+
7
+ - **Batch API**: `/v1/batches` with 50% cost discount (OpenAI-compatible)
8
+ - **Agents API**: Code Execution, Web Search, Image Generation, MCP integration
9
+ - **Agent SDK**: Wraps `@mistralai/mistralai` with direct HTTP fallback
10
+
11
+ ## Installation
12
+
13
+ Install via OMP plugin manager:
14
+
15
+ ```sh
16
+ omp plugin install @omp-provider-capabilities/mistral
17
+ ```
18
+
19
+ Install from GitHub:
20
+
21
+ ```sh
22
+ omp plugin install https://github.com/blyzer/omp-provider-capabilities/tree/main/packages/mistral
23
+ ```
24
+
25
+ Link a local checkout:
26
+
27
+ ```sh
28
+ omp plugin link /path/to/omp-provider-capabilities/packages/mistral
29
+ ```
30
+
31
+ Load the extension source for one invocation:
32
+
33
+ ```sh
34
+ omp -e /path/to/omp-provider-capabilities/packages/mistral/src/index.ts
35
+ ```
36
+
37
+ ## License
38
+
39
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omp-provider-capabilities/mistral",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Mistral provider extension: batch execution, Agents API (code execution, web search).",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -17,10 +17,24 @@
17
17
  "omp": {
18
18
  "extensions": [
19
19
  "./src/index.ts"
20
- ]
20
+ ],
21
+ "settings": {
22
+ "batch.enabled": {
23
+ "type": "boolean",
24
+ "default": true,
25
+ "description": "Enable Mistral batch API"
26
+ },
27
+ "tools.enabled": {
28
+ "type": "boolean",
29
+ "default": true,
30
+ "description": "Enable Mistral Agents API"
31
+ }
32
+ }
21
33
  },
22
34
  "files": [
35
+ "LICENSE",
23
36
  "src/",
37
+ "README.md",
24
38
  "!src/**/*.test.ts",
25
39
  "package.json"
26
40
  ],
@@ -32,5 +46,6 @@
32
46
  "omp-plugin",
33
47
  "omp-extension",
34
48
  "oh-my-pi"
35
- ]
49
+ ],
50
+ "license": "MIT"
36
51
  }