@easynet/agent-model 1.0.78 → 1.0.79
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 +1 -1
package/README.md
CHANGED
|
@@ -32,3 +32,48 @@ await createAgentModel({
|
|
|
32
32
|
configPath: "./model.yaml",
|
|
33
33
|
});
|
|
34
34
|
```
|
|
35
|
+
|
|
36
|
+
### YAML config
|
|
37
|
+
|
|
38
|
+
Example `model.yaml`:
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
apiVersion: easynet.world/v1
|
|
42
|
+
kind: ModelConfig
|
|
43
|
+
metadata:
|
|
44
|
+
name: agent-model-default
|
|
45
|
+
spec:
|
|
46
|
+
llm:
|
|
47
|
+
default: small
|
|
48
|
+
small:
|
|
49
|
+
provider: openai
|
|
50
|
+
base_url: http://localhost:11434/v1
|
|
51
|
+
model: qwen3:0.6b
|
|
52
|
+
|
|
53
|
+
embed:
|
|
54
|
+
default: local
|
|
55
|
+
local:
|
|
56
|
+
provider: openai
|
|
57
|
+
base_url: http://localhost:11434/v1
|
|
58
|
+
model: qwen3-embedding:0.6b
|
|
59
|
+
apiKey: not-needed
|
|
60
|
+
|
|
61
|
+
vlm:
|
|
62
|
+
default: glm_ocr
|
|
63
|
+
glm_ocr:
|
|
64
|
+
type: image
|
|
65
|
+
provider: openai
|
|
66
|
+
base_url: http://localhost:11434/v1
|
|
67
|
+
model: glm-ocr:q8_0
|
|
68
|
+
apiKey: not-needed
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Explanation:
|
|
72
|
+
|
|
73
|
+
- `spec.llm`: chat model definitions.
|
|
74
|
+
- `spec.llm.default`: the default LLM key to use.
|
|
75
|
+
- `spec.llm.<name>.provider`: provider type, usually `openai` for OpenAI-compatible APIs.
|
|
76
|
+
- `spec.llm.<name>.base_url`: base URL of the model service.
|
|
77
|
+
- `spec.llm.<name>.model`: model name sent to the provider.
|
|
78
|
+
- `spec.embed`: embedding model definitions used for retrieval or semantic search.
|
|
79
|
+
- `spec.vlm`: optional vision model definitions for image-capable workflows.
|