langtrain 0.1.15 → 0.1.16
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 +12 -14
- 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
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## Quickstart (CLI)
|
|
32
32
|
|
|
33
33
|
Install globally with npm:
|
|
34
34
|
|
|
@@ -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
127
|
- [**Langtrain Documentation**](https://docs.langtrain.ai)
|
|
130
128
|
- [**SDK Reference**](https://docs.langtrain.ai/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)
|