wirejs-deploy-amplify-basic 0.1.144-llm → 0.1.146-llm
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/dist/services/llm.js
CHANGED
|
@@ -132,6 +132,7 @@ export class LLM extends BaseLLM {
|
|
|
132
132
|
const result = await this.invokeModel(model, history, onChunk);
|
|
133
133
|
if (!result)
|
|
134
134
|
throw new Error("No response from model.");
|
|
135
|
+
return result;
|
|
135
136
|
}
|
|
136
137
|
catch (error) {
|
|
137
138
|
console.log(`Attempt failed with model: ${model}`);
|
|
@@ -56,7 +56,6 @@ export class RealtimeService extends Resource {
|
|
|
56
56
|
}
|
|
57
57
|
async publish(channel, events) {
|
|
58
58
|
this.#validateChannelName(channel);
|
|
59
|
-
console.log('Attempting to publish to channel:', channel);
|
|
60
59
|
// AppSync allows batches of no more than 5. Hence, if we have more than 5,
|
|
61
60
|
// we need to perform batching on our end.
|
|
62
61
|
if (events.length > 5) {
|
|
@@ -101,7 +100,6 @@ export class RealtimeService extends Resource {
|
|
|
101
100
|
headers: signedRequest.headers,
|
|
102
101
|
body: signedRequest.body,
|
|
103
102
|
});
|
|
104
|
-
console.log(`AppSync response status:`, response.status);
|
|
105
103
|
if (!response.ok) {
|
|
106
104
|
throw new Error(`Failed to publish to channel: ${response.statusText}`);
|
|
107
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.146-llm",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"recursive-copy": "^2.0.14",
|
|
45
45
|
"rimraf": "^6.0.1",
|
|
46
46
|
"wirejs-dom": "^1.0.42",
|
|
47
|
-
"wirejs-resources": "^0.1.
|
|
47
|
+
"wirejs-resources": "^0.1.146-llm"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@aws-amplify/backend": "^1.14.0",
|