langtrain 0.1.15 → 0.1.17
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 +19 -21
- package/dist/chunk-PAHGEWDE.js +30 -0
- package/dist/chunk-PAHGEWDE.js.map +1 -0
- package/dist/chunk-Q46V6ODQ.mjs +30 -0
- package/dist/chunk-Q46V6ODQ.mjs.map +1 -0
- package/dist/cli.d.mts +3 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +5 -23508
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +5 -23523
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +45 -3
- package/dist/index.d.ts +45 -3
- package/dist/index.js +1 -23056
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -23044
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -4
- package/src/cli/auth.ts +76 -0
- package/src/cli/config.ts +28 -0
- package/src/cli/handlers/agent.ts +183 -0
- package/src/cli/handlers/subscription.ts +30 -0
- package/src/cli/handlers/tune.ts +155 -0
- package/src/cli/handlers/vision.ts +159 -0
- package/src/cli/index.ts +154 -0
- package/src/cli/menu.ts +70 -0
- package/src/cli/ui.ts +50 -0
- package/src/index.ts +8 -6
- package/src/{agent.ts → lib/agent.ts} +2 -2
- package/src/lib/models.ts +61 -0
- package/tsup.config.ts +7 -2
- package/src/cli.ts +0 -622
- /package/src/{files.ts → lib/files.ts} +0 -0
- /package/src/{subscription.ts → lib/subscription.ts} +0 -0
- /package/src/{training.ts → lib/training.ts} +0 -0
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<p>
|
|
11
11
|
<a href="https://www.npmjs.com/package/langtrain"><img src="https://img.shields.io/npm/v/langtrain?style=flat-square&labelColor=18181b&color=22c55e" alt="npm version" /></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/langtrain"><img src="https://img.shields.io/npm/dm/langtrain?style=flat-square&labelColor=18181b&color=3b82f6" alt="npm downloads" /></a>
|
|
13
|
-
<a href="https://langtrain.
|
|
14
|
-
<a href="https://docs.langtrain.
|
|
13
|
+
<a href="https://langtrain.xyz"><img src="https://img.shields.io/badge/website-langtrain.xyz-18181b?style=flat-square&labelColor=18181b" alt="website" /></a>
|
|
14
|
+
<a href="https://docs.langtrain.xyz"><img src="https://img.shields.io/badge/docs-documentation-18181b?style=flat-square&labelColor=18181b" alt="documentation" /></a>
|
|
15
15
|
<a href="https://github.com/langtrain-ai/langtrain-sdk/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/langtrain?style=flat-square&labelColor=18181b&color=3b82f6" alt="license" /></a>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
<p><strong>Langtrain CLI</strong> is a unified AI engineering platform that runs locally on your computer and connects to the Langtrain Cloud.</p>
|
|
22
22
|
|
|
23
23
|
<p>
|
|
24
|
-
If you want Langtrain in your code editor, <a href="https://langtrain.
|
|
25
|
-
If you are looking for the <em>web-based platform</em>, <strong>Langtrain Web</strong>, go to <a href="https://langtrain.
|
|
24
|
+
If you want Langtrain in your code editor, <a href="https://langtrain.xyz/docs/vscode">install the VS Code Extension.</a><br/>
|
|
25
|
+
If you are looking for the <em>web-based platform</em>, <strong>Langtrain Web</strong>, go to <a href="https://langtrain.xyz">langtrain.xyz</a>.
|
|
26
26
|
</p>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## Quickstart (CLI)
|
|
32
32
|
|
|
33
33
|
Install globally with npm:
|
|
34
34
|
|
|
@@ -53,7 +53,7 @@ sudo npm install -g langtrain
|
|
|
53
53
|
|
|
54
54
|
### Using Langtrain with your Cloud Plan
|
|
55
55
|
|
|
56
|
-
Run `langtrain login` and enter your API Key from the dashboard to authenticate. We recommend signing into your Langtrain account to use **Cloud Finetuning**, **Agent Persistence**, and **Model Hosting** as part of your Pro or Enterprise plan. [Learn more about Langtrain Plans](https://langtrain.
|
|
56
|
+
Run `langtrain login` and enter your API Key from the dashboard to authenticate. We recommend signing into your Langtrain account to use **Cloud Finetuning**, **Agent Persistence**, and **Model Hosting** as part of your Pro or Enterprise plan. [Learn more about Langtrain Plans](https://langtrain.xyz/pricing).
|
|
57
57
|
|
|
58
58
|
Check your subscription status and limits:
|
|
59
59
|
```shell
|
|
@@ -63,7 +63,7 @@ langtrain status
|
|
|
63
63
|
|
|
64
64
|
---
|
|
65
65
|
|
|
66
|
-
##
|
|
66
|
+
## SDK Usage
|
|
67
67
|
|
|
68
68
|
You can also use `langtrain` as a library in your Node.js applications to build intelligent agents and workflows.
|
|
69
69
|
|
|
@@ -93,15 +93,15 @@ async function analyzeAndTune() {
|
|
|
93
93
|
}
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
##
|
|
96
|
+
## Features
|
|
97
97
|
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
98
|
+
- **AI Agents**: Create, manage, and chat with custom AI agents hosted on Langtrain Server.
|
|
99
|
+
- **Langtune**: Fine-tune LLMs (Llama 3, Mistral) locally or on the cloud.
|
|
100
|
+
- **Langvision**: Optimize and fine-tune multimodal vision models.
|
|
101
|
+
- **Data Persistence**: Automatically sync datasets and training jobs with your workspace.
|
|
102
|
+
- **Subscription Management**: Verify plan limits and feature access programmatically.
|
|
103
103
|
|
|
104
|
-
##
|
|
104
|
+
## Configuration
|
|
105
105
|
|
|
106
106
|
The SDK and CLI can be configured using environment variables `(dotenv supported)` or via `langtrain login`.
|
|
107
107
|
|
|
@@ -118,19 +118,17 @@ const client = new Langvision({
|
|
|
118
118
|
});
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
##
|
|
121
|
+
## Community & Support
|
|
122
122
|
|
|
123
123
|
- **[GitHub Discussions](https://github.com/langtrain-ai/langtrain-sdk/discussions)**: Ask questions and share ideas.
|
|
124
|
-
- **[Twitter](https://twitter.com/langtrain_ai)**: Follow for updates and announcements.
|
|
125
|
-
- **[Email](mailto:support@langtrain.ai)**: Contact us for enterprise support.
|
|
126
124
|
|
|
127
|
-
##
|
|
125
|
+
## Documentation
|
|
128
126
|
|
|
129
|
-
- [**Langtrain Documentation**](https://docs.langtrain.
|
|
130
|
-
- [**SDK Reference**](https://docs.langtrain.
|
|
127
|
+
- [**Langtrain Documentation**](https://docs.langtrain.xyz)
|
|
128
|
+
- [**SDK Reference**](https://docs.langtrain.xyz/sdk)
|
|
131
129
|
- [**Contributing**](./CONTRIBUTING.md)
|
|
132
130
|
|
|
133
|
-
##
|
|
131
|
+
## License
|
|
134
132
|
|
|
135
133
|
This repository is licensed under the [MIT License](LICENSE).
|
|
136
134
|
copyright © [Langtrain](https://langtrain.xyz)
|