Browse Source

fix: skip request-count usage check via AIChatService

KernelDeimos 4 months ago
parent
commit
6083e3ac52
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/backend/src/modules/puterai/AIChatService.js

+ 2 - 0
src/backend/src/modules/puterai/AIChatService.js

@@ -378,6 +378,7 @@ class AIChatService extends BaseService {
                     ret = await svc_driver.call_new_({
                     ret = await svc_driver.call_new_({
                         actor: Context.get('actor'),
                         actor: Context.get('actor'),
                         service_name: intended_service,
                         service_name: intended_service,
+                        skip_usage: true,
                         iface: 'puter-chat-completion',
                         iface: 'puter-chat-completion',
                         method: 'complete',
                         method: 'complete',
                         args: parameters,
                         args: parameters,
@@ -431,6 +432,7 @@ class AIChatService extends BaseService {
                             ret = await svc_driver.call_new_({
                             ret = await svc_driver.call_new_({
                                 actor: Context.get('actor'),
                                 actor: Context.get('actor'),
                                 service_name: fallback_service_name,
                                 service_name: fallback_service_name,
+                                skip_usage: true,
                                 iface: 'puter-chat-completion',
                                 iface: 'puter-chat-completion',
                                 method: 'complete',
                                 method: 'complete',
                                 args: {
                                 args: {