@gram-ai/elements 1.0.8 → 1.1.0

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.
@@ -20,9 +20,20 @@ export interface ElementsConfig {
20
20
  /**
21
21
  * The Gram Server URL to use for the Elements library.
22
22
  * Can be retrieved from https://app.getgram.ai/{team}/{project}/mcp/{mcp_slug}
23
+ *
23
24
  * Note: This config option will likely change in the future
24
25
  */
25
26
  mcp: ServerUrl;
27
+ /**
28
+ * The path of your backend's chat endpoint.
29
+ * @default '/chat/completions'
30
+ *
31
+ * @example
32
+ * const config: ElementsConfig = {
33
+ * chatEndpoint: '/my-custom-chat-endpoint',
34
+ * }
35
+ */
36
+ chatEndpoint?: string;
26
37
  /**
27
38
  * Custom environment variable overrides for the Elements library.
28
39
  * Will be used to override the environment variables for the MCP server.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gram-ai/elements",
3
3
  "description": "Gram Elements is a library of UI primitives for building chat-like experiences for MCP Servers.",
4
4
  "type": "module",
5
- "version": "1.0.8",
5
+ "version": "1.1.0",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
8
8
  ".": {