You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* - Other / missing framework → Vue materials by default
29
+
*/
30
+
materialsMeta?:IMaterialsMeta;
23
31
}
24
32
```
25
33
26
34
-**Details**
27
35
28
-
Creates an Express app with CORS enabled and registers the chat route (`/chat/completions`). If the specified port is in use, it automatically tries the next port (up to `maxAttempts` times). On success, the server address is printed to the console.
36
+
Creates an Express app with CORS enabled and registers the chat route (`/chat/completions`). If the specified port is in use, it automatically tries the next port (up to `maxAttempts` times). On success, the server address is printed to the console. Materials are fixed at startup via `materialsMeta` and cannot be switched per request. When omitted, they follow the request `framework` mapping (Vue → OpenTiny Vue, Angular → OpenTiny Angular).
* - Other / missing framework → Vue materials by default
78
+
*/
79
+
materialsMeta?:IMaterialsMeta;
62
80
}
63
81
```
64
82
65
83
-**Details**
66
84
67
-
Creates a chat completion request instance, builds a request handler, and registers it on the specified route (POST).
85
+
Creates a chat completion request instance, builds a request handler, and registers it on the specified route (POST). Materials are fixed via `materialsMeta` when equipping the route. When omitted, they follow the request `framework` mapping (Vue → OpenTiny Vue, Angular → OpenTiny Angular).
0 commit comments