@omp-provider-capabilities/mistral 0.1.0 → 0.1.2
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 +45 -0
- package/package.json +2 -1
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
```bash
|
|
14
|
+
npm install @omp-provider-capabilities/mistral @omp-provider-capabilities/core
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { MistralBatchClient } from "@omp-provider-capabilities/mistral";
|
|
21
|
+
|
|
22
|
+
const batch = new MistralBatchClient({ apiKey: process.env.MISTRAL_API_KEY });
|
|
23
|
+
|
|
24
|
+
// Submit batch job
|
|
25
|
+
const job = await batch.create({
|
|
26
|
+
model: "mistral-large-latest",
|
|
27
|
+
requests: [{ prompt: "Analyze this..." }]
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// Poll for results
|
|
31
|
+
const results = await batch.waitForCompletion(job.id);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Agents API
|
|
35
|
+
|
|
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
|
|
40
|
+
|
|
41
|
+
## Batch API
|
|
42
|
+
|
|
43
|
+
- **Endpoint**: `/v1/batches` (OpenAI-compatible)
|
|
44
|
+
- **Discount**: 50% off real-time pricing
|
|
45
|
+
- **Status**: Stable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omp-provider-capabilities/mistral",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Mistral provider extension: batch execution, Agents API (code execution, web search).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"src/",
|
|
24
|
+
"README.md",
|
|
24
25
|
"!src/**/*.test.ts",
|
|
25
26
|
"package.json"
|
|
26
27
|
],
|