datacontract-editor 0.1.2 → 0.1.3

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 CHANGED
@@ -51,6 +51,44 @@ docker run -d -p 4173:4173 datacontract/editor
51
51
 
52
52
  Then open http://localhost:4173
53
53
 
54
+ #### Configure AI Assistant
55
+
56
+ The AI Assistant is disabled by default in Docker. To enable it, provide your own OpenAI-compatible endpoint:
57
+
58
+ **OpenAI:**
59
+ ```bash
60
+ docker run -d -p 4173:4173 \
61
+ -e AI_ENDPOINT=https://api.openai.com/v1/chat/completions \
62
+ -e AI_API_KEY=sk-your-api-key \
63
+ -e AI_MODEL=gpt-4o \
64
+ datacontract/editor
65
+ ```
66
+
67
+ **Azure OpenAI:**
68
+ ```bash
69
+ docker run -d -p 4173:4173 \
70
+ -e AI_ENDPOINT=https://your-resource.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-15-preview \
71
+ -e AI_API_KEY=your-azure-key \
72
+ -e AI_AUTH_HEADER=api-key \
73
+ datacontract/editor
74
+ ```
75
+
76
+ **Local LLM (Ollama):**
77
+ ```bash
78
+ docker run -d -p 4173:4173 \
79
+ -e AI_ENDPOINT=http://host.docker.internal:11434/v1/chat/completions \
80
+ -e AI_API_KEY=ollama \
81
+ -e AI_MODEL=llama3.2 \
82
+ datacontract/editor
83
+ ```
84
+
85
+ | Variable | Description | Default |
86
+ |----------|-------------|---------|
87
+ | `AI_ENDPOINT` | OpenAI-compatible chat completions URL | Hosted API |
88
+ | `AI_API_KEY` | API key for authentication | Hosted API |
89
+ | `AI_MODEL` | Model name | `gpt-4o` |
90
+ | `AI_AUTH_HEADER` | Auth header: `bearer` or `api-key` | `bearer` |
91
+
54
92
 
55
93
  ### Data Contract CLI
56
94
 
@@ -1,4 +1,4 @@
1
- import { m as tt } from "./embed-yrOtk_lG.js";
1
+ import { m as tt } from "./embed-BTxQKyKe.js";
2
2
  var rt = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = Object.getOwnPropertyNames, ot = Object.prototype.hasOwnProperty, at = (e, n, i, r) => {
3
3
  if (n && typeof n == "object" || typeof n == "function")
4
4
  for (let t of it(n))