@omp-provider-capabilities/mistral 0.1.2 → 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 +17 -23
  3. package/package.json +17 -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 CHANGED
@@ -10,36 +10,30 @@ Mistral provider features for OMP: batch execution, Agents API, and Agent SDK wr
10
10
 
11
11
  ## Installation
12
12
 
13
- ```bash
14
- npm install @omp-provider-capabilities/mistral @omp-provider-capabilities/core
15
- ```
13
+ Install via OMP plugin manager:
16
14
 
17
- ## Usage
15
+ ```sh
16
+ omp plugin install @omp-provider-capabilities/mistral
17
+ ```
18
18
 
19
- ```typescript
20
- import { MistralBatchClient } from "@omp-provider-capabilities/mistral";
19
+ Install from GitHub:
21
20
 
22
- const batch = new MistralBatchClient({ apiKey: process.env.MISTRAL_API_KEY });
21
+ ```sh
22
+ omp plugin install https://github.com/blyzer/omp-provider-capabilities/tree/main/packages/mistral
23
+ ```
23
24
 
24
- // Submit batch job
25
- const job = await batch.create({
26
- model: "mistral-large-latest",
27
- requests: [{ prompt: "Analyze this..." }]
28
- });
25
+ Link a local checkout:
29
26
 
30
- // Poll for results
31
- const results = await batch.waitForCompletion(job.id);
27
+ ```sh
28
+ omp plugin link /path/to/omp-provider-capabilities/packages/mistral
32
29
  ```
33
30
 
34
- ## Agents API
31
+ Load the extension source for one invocation:
35
32
 
36
- - **Code Execution**: Run code in sandboxed environment
37
- - **Web Search**: Real-time web search
38
- - **Image Generation**: Generate images via API
39
- - **MCP**: Model Context Protocol integration
33
+ ```sh
34
+ omp -e /path/to/omp-provider-capabilities/packages/mistral/src/index.ts
35
+ ```
40
36
 
41
- ## Batch API
37
+ ## License
42
38
 
43
- - **Endpoint**: `/v1/batches` (OpenAI-compatible)
44
- - **Discount**: 50% off real-time pricing
45
- - **Status**: Stable
39
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omp-provider-capabilities/mistral",
3
- "version": "0.1.2",
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,9 +17,22 @@
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/",
24
37
  "README.md",
25
38
  "!src/**/*.test.ts",
@@ -33,5 +46,6 @@
33
46
  "omp-plugin",
34
47
  "omp-extension",
35
48
  "oh-my-pi"
36
- ]
49
+ ],
50
+ "license": "MIT"
37
51
  }