symposium 1.2.13 → 1.2.14
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/Agent.js +1 -1
- package/models/AnthropicModel.js +1 -1
- package/package.json +1 -1
package/Agent.js
CHANGED
|
@@ -432,7 +432,7 @@ export default class Agent {
|
|
|
432
432
|
|
|
433
433
|
async confirmFunctions({thread, functions, completion, emitter}) {
|
|
434
434
|
const response = await this.callFunctions(thread, emitter, completion, functions, true);
|
|
435
|
-
if (response
|
|
435
|
+
if (response?.type === 'continue')
|
|
436
436
|
return this.execute(thread, emitter);
|
|
437
437
|
}
|
|
438
438
|
|
package/models/AnthropicModel.js
CHANGED
|
@@ -95,7 +95,7 @@ export default class AnthropicModel extends Model {
|
|
|
95
95
|
];
|
|
96
96
|
} catch (e) {
|
|
97
97
|
if (e.error?.error?.type === 'rate_limit_error') {
|
|
98
|
-
console.
|
|
98
|
+
console.warn('Rate limite exceeded for Anthropic API, waiting 60 seconds...');
|
|
99
99
|
await new Promise(resolve => setTimeout(resolve, 60000));
|
|
100
100
|
if ((options.counter || 0) < 3)
|
|
101
101
|
return this.generate(thread, functions, {...options, counter: (options.counter || 0) + 1});
|