[go: up one dir, main page]

TWI867936B - System and method for managing token usage - Google Patents

System and method for managing token usage Download PDF

Info

Publication number
TWI867936B
TWI867936B TW113101149A TW113101149A TWI867936B TW I867936 B TWI867936 B TW I867936B TW 113101149 A TW113101149 A TW 113101149A TW 113101149 A TW113101149 A TW 113101149A TW I867936 B TWI867936 B TW I867936B
Authority
TW
Taiwan
Prior art keywords
token
processing unit
usage
identification data
authorized
Prior art date
Application number
TW113101149A
Other languages
Chinese (zh)
Other versions
TW202528982A (en
Inventor
呂遠宏
徐銘霞
鄭東濬
林宗穎
王逸庭
林莞筑
蔡根元
陳照元
Original Assignee
玉山商業銀行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 玉山商業銀行股份有限公司 filed Critical 玉山商業銀行股份有限公司
Priority to TW113101149A priority Critical patent/TWI867936B/en
Application granted granted Critical
Publication of TWI867936B publication Critical patent/TWI867936B/en
Priority to JP2025003399A priority patent/JP7795657B2/en
Publication of TW202528982A publication Critical patent/TW202528982A/en

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a system for managing token usage that comprises: a storage unit, and a processing unit connected to the storage unit. When an user terminal logs in to the system with an user account and transmits data to be sent including a prompt, and after the processing unit determines that a unit identification corresponding to the user account conforms to one of a plurality of pre-stored authorized unit identification and an estimated token usage generated according to the prompt is not greater than a remaining token amount corresponding to the authorized unit identification, the processing unit transmits a response request including the data to be sent to a generative AI system, receives a last token usage transmitted by the generative AI system, and updates the corresponding remaining token amount according to the last token usage.

Description

令牌用量管理系統及令牌用量管理方法Token usage management system and token usage management method

本發明是有關於一種管理系統,特別是指一種用於管理令牌之用量的管理系統。本發明還有關於一種用於管理令牌之用量的管理方法。The present invention relates to a management system, in particular to a management system for managing the usage of tokens. The present invention also relates to a management method for managing the usage of tokens.

使用基於生成式人工智慧(Generative AI)的平台(例如ChatGPT)的人數快速增加。目前平台是以字元數去計算令牌(Token)數量,並以此數量作為使用量計費的依歸。The number of people using platforms based on generative AI (such as ChatGPT) is increasing rapidly. Currently, the platform calculates the number of tokens based on the number of characters and uses this number as the basis for usage billing.

目前平台收費的形式是採「預付制」,且帳號管理上以「企業」作為單一帳號認證來源。由於同一企業有不同的單位同時以同一企業帳號使用平台服務,且有時並非該企業每一個單位都有規劃被授權使用。因此,如何發展出一種新的系統,能協助企業管理不同單位的令牌使用量,避免費用超支,是本發明進一步要探討的主題。At present, the platform charges fees in the form of "prepayment system", and the account management uses "enterprise" as the single account authentication source. Because different units of the same enterprise use the platform services with the same enterprise account at the same time, and sometimes not every unit of the enterprise is authorized to use the plan. Therefore, how to develop a new system that can help enterprises manage the token usage of different units and avoid cost overspending is a further topic to be explored in this invention.

因此,本發明的目的,即在提供一種令牌用量管理系統。Therefore, the purpose of the present invention is to provide a token usage management system.

本發明的另一目的,在於提供一種令牌用量管理方法。Another object of the present invention is to provide a token usage management method.

於是,本發明令牌用量管理系統,適於與一生成式人工智慧系統及一使用端電子裝置通訊,並包含一儲存單元及一處理單元。Therefore, the token usage management system of the present invention is suitable for communicating with a generative artificial intelligence system and a user-end electronic device, and includes a storage unit and a processing unit.

該儲存單元儲存有多個使用者帳號、多個分別對應於該等使用者帳號的單位識別資料,及一令牌管理資料,該令牌管理資料包含多個分別對應於多個被授權單位的被授權單位識別資料,及多個分別對應於該等被授權單位的令牌剩餘使用量。該處理單元連接於該儲存單元。The storage unit stores a plurality of user accounts, a plurality of unit identification data respectively corresponding to the user accounts, and a token management data, the token management data including a plurality of authorized unit identification data respectively corresponding to a plurality of authorized units, and a plurality of token remaining usage amounts respectively corresponding to the plurality of authorized units. The processing unit is connected to the storage unit.

當該使用端電子裝置以其中一使用者帳號登入該令牌用量管理系統且傳送一包含一提示詞的待發送資料,該處理單元判斷該使用者帳號對應的該單位識別資料是否與該等被授權單位識別資料其中一者相符。When the user-end electronic device logs into the token usage management system with one of the user accounts and transmits a to-be-sent data including a prompt word, the processing unit determines whether the unit identification data corresponding to the user account matches one of the authorized unit identification data.

該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後,該處理單元根據該提示詞產生一預估令牌使用量。After the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data, the processing unit generates an estimated token usage according to the prompt word.

該處理單元判斷該預估令牌使用量是否不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量。The processing unit determines whether the estimated token usage is not greater than the remaining token usage corresponding to the authorized unit identification data.

當該處理單元判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量,該處理單元將一包含該待發送資料的答覆請求傳送給該生成式人工智慧系統。When the processing unit determines that the estimated token usage is not greater than the remaining token usage corresponding to the authorized unit identification data, the processing unit transmits a response request including the data to be sent to the generative artificial intelligence system.

該處理單元接收該生成式人工智慧系統回傳的對應於該答覆請求的一答覆結果及一本次令牌使用量。The processing unit receives a response result and a token usage corresponding to the response request returned by the generative artificial intelligence system.

該處理單元將該答覆結果傳送給該使用端電子裝置並根據該本次令牌使用量更新對應的該令牌剩餘使用量。The processing unit transmits the response result to the user-end electronic device and updates the corresponding remaining usage of the token according to the current token usage.

在一些實施態樣中,於該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後且於該處理單元根據該提示詞產生該預估令牌使用量之前,該處理單元判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量是否為零。In some implementations, after the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data and before the processing unit generates the estimated token usage based on the prompt, the processing unit determines whether the remaining usage of the token corresponding to the matching authorized unit identification data is zero.

當該處理單元判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量非為零,該處理單元根據該提示詞產生該預估令牌使用量。When the processing unit determines that the remaining usage of the token corresponding to the authorized unit identification data that matches is not zero, the processing unit generates the estimated token usage according to the prompt word.

在一些實施態樣中,該處理單元根據該本次令牌使用量更新對應的該令牌剩餘使用量之後,該處理單元判斷更新後的該令牌剩餘使用量是否低於一警戒值。In some implementations, after the processing unit updates the remaining usage of the token corresponding to the current token usage, the processing unit determines whether the updated remaining usage of the token is lower than a warning value.

當該處理單元判斷更新後的該令牌剩餘使用量低於該警戒值,該處理單元發送一指示出該令牌剩餘使用量低於該警戒值的警戒通知。When the processing unit determines that the updated remaining usage of the token is lower than the warning value, the processing unit sends a warning notification indicating that the remaining usage of the token is lower than the warning value.

本發明令牌用量管理方法,藉由一令牌用量管理系統實施,該令牌用量管理系統適於與一生成式人工智慧系統及一使用端電子裝置通訊並包含一儲存單元及一處理單元,該儲存單元儲存有多個使用者帳號、多個分別對應於該等使用者帳號的單位識別資料,及一令牌管理資料,該令牌管理資料包含多個分別對應於多個被授權單位的被授權單位識別資料,及多個分別對應於該等被授權單位的令牌剩餘使用量,該方法包含:當該使用端電子裝置以其中一使用者帳號登入該令牌用量管理系統且傳送一包含一提示詞的待發送資料,該處理單元判斷該使用者帳號對應的該單位識別資料是否與該等被授權單位識別資料其中一者相符;該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後,該處理單元根據該提示詞產生一預估令牌使用量;該處理單元判斷該預估令牌使用量是否不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量;當該處理單元判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量,該處理單元將一包含該待發送資料的答覆請求傳送給該生成式人工智慧系統;該處理單元接收該生成式人工智慧系統回傳的對應於該答覆請求的一答覆結果及一本次令牌使用量;及該處理單元將該答覆結果傳送給該使用端電子裝置並根據該本次令牌使用量更新對應的該令牌剩餘使用量。The token usage management method of the present invention is implemented by a token usage management system. The token usage management system is suitable for communicating with a generative artificial intelligence system and a user-end electronic device and includes a storage unit and a processing unit. The storage unit stores multiple user accounts, multiple unit identification data corresponding to the user accounts, and a token management data. The token management data includes multiple unit identification data corresponding to the multiple user accounts. The method comprises: when the user-end electronic device logs into the token usage management system with one of the user accounts and transmits a to-be-sent data including a prompt word, the processing unit determines whether the unit identification data corresponding to the user account matches one of the authorized unit identification data; the processing unit After the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data, the processing unit generates an estimated token usage according to the prompt word; the processing unit determines whether the estimated token usage is not greater than the remaining usage of the token corresponding to the matching authorized unit identification data; when the processing unit determines that the estimated token usage is not greater than the remaining usage of the token corresponding to the matching authorized unit identification data, the processing unit generates an estimated token usage according to the prompt word; The processing unit transmits a reply request including the data to be sent to the generative artificial intelligence system; the processing unit receives a reply result corresponding to the reply request and the current token usage returned by the generative artificial intelligence system; and the processing unit transmits the reply result to the user-end electronic device and updates the corresponding remaining token usage according to the current token usage.

本發明的功效在於:藉由該儲存單元儲存有分別對應於該等被授權單位的該等令牌剩餘使用量,並該處理單元根據該提示詞產生該預估令牌使用量,並當判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量時,才將包含該待發送資料的該答覆請求傳送給該生成式人工智慧系統,能協助企業管理不同單位的令牌使用量,避免費用超支。The effect of the present invention is that: the storage unit stores the remaining usage of the tokens corresponding to the authorized units respectively, and the processing unit generates the estimated token usage according to the prompt word, and when it is judged that the estimated token usage is not greater than the remaining usage of the token corresponding to the corresponding identification data of the authorized unit, the reply request containing the data to be sent is sent to the generative artificial intelligence system, which can help enterprises manage the token usage of different units and avoid cost overspending.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that similar components are represented by the same reference numerals in the following description.

參閱圖1,本發明令牌用量管理系統100的一實施例,該令牌用量管理系統100適於與一生成式人工智慧系統200(例如ChatGPT)及一使用端電子裝置300通訊,並包含一儲存單元1及一處理單元2。Referring to FIG. 1 , an embodiment of a token usage management system 100 of the present invention is shown. The token usage management system 100 is suitable for communicating with a generative artificial intelligence system 200 (such as ChatGPT) and a user-end electronic device 300, and includes a storage unit 1 and a processing unit 2.

該使用端電子裝置300例如為一智慧型手機、一平板電腦、一膝上型電腦或一桌上型電腦。The end electronic device 300 is, for example, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

該儲存單元1儲存有多個使用者帳號、多個分別對應於該等使用者帳號的單位識別資料,及一令牌管理資料,該令牌管理資料包含多個分別對應於多個被授權單位的被授權單位識別資料,及多個分別對應於該等被授權單位的令牌剩餘使用量。該儲存單元1可使用諸如硬碟、快閃記憶體等的非揮發性儲存媒介來實施。The storage unit 1 stores a plurality of user accounts, a plurality of unit identification data corresponding to the user accounts, and a token management data, the token management data including a plurality of authorized unit identification data corresponding to the plurality of authorized units, and a plurality of token remaining usage corresponding to the plurality of authorized units. The storage unit 1 can be implemented using non-volatile storage media such as hard disks, flash memories, etc.

該處理單元2連接於該儲存單元1。該處理單元2可包含(但不限於)一單核處理器、一個多核處理器、一個雙核手機處理器、一微處理器、一微控制器、一數位訊號處理器(DSP)、一現場可程式邏輯閘陣列(FPGA)、一特殊應用積體電路(ASIC)及一射頻積體電路(RFIC)其中至少一者。The processing unit 2 is connected to the storage unit 1. The processing unit 2 may include (but is not limited to) at least one of a single-core processor, a multi-core processor, a dual-core mobile phone processor, a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) and a radio frequency integrated circuit (RFIC).

參閱圖1、圖2A及圖2B,以下說明該令牌用量管理系統100執行的步驟。首先,如步驟S01所示,當該使用端電子裝置300以其中一使用者帳號登入該令牌用量管理系統100且傳送一包含一提示詞(prompt)的待發送資料,該處理單元2判斷該使用者帳號對應的該單位識別資料是否與該等被授權單位識別資料其中一者相符,若否,則流程結束,藉此避免未被授權的使用者使用令牌。若步驟S01判斷為是,則執行步驟S02。Referring to FIG. 1 , FIG. 2A and FIG. 2B , the steps executed by the token usage management system 100 are described below. First, as shown in step S01, when the user-end electronic device 300 logs into the token usage management system 100 with one of the user accounts and transmits a to-be-sent data including a prompt, the processing unit 2 determines whether the unit identification data corresponding to the user account matches one of the authorized unit identification data. If not, the process ends, thereby preventing unauthorized users from using the token. If step S01 determines yes, step S02 is executed.

步驟S02是於該處理單元2判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後,該處理單元2判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量是否為零,若是,則流程結束,藉此避免令牌超額使用。若步驟S02判斷為否,則執行步驟S03。Step S02 is that after the processing unit 2 determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data, the processing unit 2 determines whether the remaining usage of the token corresponding to the matching authorized unit identification data is zero. If so, the process ends to avoid excessive token usage. If step S02 is judged as no, step S03 is executed.

步驟S03是於該處理單元2判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量不為零後,該處理單元2根據該提示詞產生一預估令牌使用量。Step S03 is that after the processing unit 2 determines that the remaining usage of the token corresponding to the authorized unit identification data is not zero, the processing unit 2 generates an estimated token usage according to the prompt word.

接著,如步驟S04所示,該處理單元2判斷該預估令牌使用量是否不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量,若否,則流程結束,藉此避免令牌超額使用。若步驟S04判斷為示,則執行步驟S05。Next, as shown in step S04, the processing unit 2 determines whether the estimated token usage is not greater than the remaining usage of the token corresponding to the authorized unit identification data. If not, the process ends to avoid excessive token usage. If the determination in step S04 is yes, step S05 is executed.

步驟S05是當該處理單元2判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量,該處理單元2將一包含該待發送資料的答覆請求傳送給該生成式人工智慧系統200。Step S05 is when the processing unit 2 determines that the estimated token usage is not greater than the remaining token usage corresponding to the authorized unit identification data, the processing unit 2 transmits a response request including the data to be sent to the generative artificial intelligence system 200.

接著,如步驟S06所示,該處理單元2接收該生成式人工智慧系統200回傳的對應於該答覆請求的一答覆結果及一本次令牌使用量。Next, as shown in step S06, the processing unit 2 receives a response result and a token usage corresponding to the response request returned by the generative artificial intelligence system 200.

接著,如步驟S07所示,該處理單元2將該答覆結果傳送給該使用端電子裝置300並根據該本次令牌使用量更新對應的該令牌剩餘使用量。Then, as shown in step S07, the processing unit 2 transmits the response result to the user-end electronic device 300 and updates the corresponding remaining usage of the token according to the current token usage.

接著,如步驟S08所示,該處理單元2根據該本次令牌使用量更新對應的該令牌剩餘使用量之後,該處理單元2判斷更新後的該令牌剩餘使用量是否低於一警戒值,若是,則執行步驟S09,若否,則結束。Next, as shown in step S08, after the processing unit 2 updates the corresponding remaining usage of the token according to the current token usage, the processing unit 2 determines whether the updated remaining usage of the token is lower than a warning value. If so, step S09 is executed, otherwise, the process ends.

步驟S09是當該處理單元2判斷更新後的該令牌剩餘使用量低於該警戒值,該處理單元2發送一指示出該令牌剩餘使用量低於該警戒值的警戒通知。該警戒通知例如以電子郵件的方式發送給管理人員(例如單位主管)。Step S09 is when the processing unit 2 determines that the remaining usage of the token after the update is lower than the warning value, the processing unit 2 sends a warning notice indicating that the remaining usage of the token is lower than the warning value. The warning notice is sent to the management personnel (such as the unit supervisor) in the form of an e-mail, for example.

綜上所述,本發明令牌用量管理系統100藉由該儲存單元1儲存有分別對應於該等被授權單位的該等令牌剩餘使用量,並該處理單元2根據該提示詞產生該預估令牌使用量,並當判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量時,才將包含該待發送資料的該答覆請求傳送給該生成式人工智慧系統200,能協助企業管理不同單位的令牌使用量,避免費用超支,故確實能達成本發明的目的。In summary, the token usage management system 100 of the present invention stores the remaining usage of the tokens corresponding to the authorized units respectively through the storage unit 1, and the processing unit 2 generates the estimated token usage according to the prompt word, and only when it is determined that the estimated token usage is not greater than the remaining usage of the token corresponding to the corresponding identification data of the authorized unit, the reply request containing the data to be sent is transmitted to the generative artificial intelligence system 200, which can help enterprises manage the token usage of different units and avoid cost overspending, so the purpose of the present invention can be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above is only an embodiment of the present invention and should not be used to limit the scope of implementation of the present invention. All simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still within the scope of the present patent.

100:令牌用量管理系統 1:儲存單元 2:處理單元 200:生成式人工智慧系統 300:使用端電子裝置 S01~S09:步驟100: Token usage management system 1: Storage unit 2: Processing unit 200: Generative artificial intelligence system 300: User-side electronic device S01~S09: Steps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是本發明令牌用量管理系統的一個實施例的一硬體連接關係示意圖;及 圖2A及圖2B是該實施例的一流程圖。 Other features and functions of the present invention will be clearly presented in the implementation method of the reference figures, wherein: FIG. 1 is a schematic diagram of a hardware connection relationship of an embodiment of the token usage management system of the present invention; and FIG. 2A and FIG. 2B are a flow chart of the embodiment.

100:令牌用量管理系統 100: Token usage management system

1:儲存單元 1: Storage unit

2:處理單元 2: Processing unit

200:生成式人工智慧系統 200:Generative Artificial Intelligence System

300:使用端電子裝置 300: User-end electronic device

Claims (6)

一種令牌用量管理系統,適於與一生成式人工智慧系統及一使用端電子裝置通訊,並包含: 一儲存單元,儲存有多個使用者帳號、多個分別對應於該等使用者帳號的單位識別資料,及一令牌管理資料,該令牌管理資料包含多個分別對應於多個被授權單位的被授權單位識別資料,及多個分別對應於該等被授權單位的令牌剩餘使用量;及 一處理單元,連接於該儲存單元; 當該使用端電子裝置以其中一使用者帳號登入該令牌用量管理系統且傳送一包含一提示詞的待發送資料,該處理單元判斷該使用者帳號對應的該單位識別資料是否與該等被授權單位識別資料其中一者相符; 該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後,該處理單元根據該提示詞產生一預估令牌使用量; 該處理單元判斷該預估令牌使用量是否不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量; 當該處理單元判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量,該處理單元將一包含該待發送資料的答覆請求傳送給該生成式人工智慧系統; 該處理單元接收該生成式人工智慧系統回傳的對應於該答覆請求的一答覆結果及一本次令牌使用量; 該處理單元將該答覆結果傳送給該使用端電子裝置並根據該本次令牌使用量更新對應的該令牌剩餘使用量。 A token usage management system is suitable for communicating with a generative artificial intelligence system and a user-end electronic device, and comprises: A storage unit storing multiple user accounts, multiple unit identification data corresponding to the user accounts, and a token management data, the token management data comprising multiple authorized unit identification data corresponding to multiple authorized units, and multiple token remaining usage corresponding to the authorized units; and A processing unit connected to the storage unit; When the user-end electronic device logs into the token usage management system with one of the user accounts and transmits a to-be-sent data including a prompt word, the processing unit determines whether the unit identification data corresponding to the user account matches one of the authorized unit identification data; After the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data, the processing unit generates an estimated token usage according to the prompt word; The processing unit determines whether the estimated token usage is not greater than the remaining usage of the token corresponding to the matching authorized unit identification data; When the processing unit determines that the estimated token usage is not greater than the remaining token usage corresponding to the corresponding authorized unit identification data, the processing unit transmits a response request including the data to be sent to the generative artificial intelligence system; The processing unit receives a response result corresponding to the response request and a token usage for this time returned by the generative artificial intelligence system; The processing unit transmits the response result to the user-end electronic device and updates the corresponding remaining token usage according to the token usage for this time. 如請求項1所述的令牌用量管理系統,其中,於該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後且於該處理單元根據該提示詞產生該預估令牌使用量之前,該處理單元判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量是否為零; 當該處理單元判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量非為零,該處理單元根據該提示詞產生該預估令牌使用量。 A token usage management system as described in claim 1, wherein, after the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data and before the processing unit generates the estimated token usage according to the prompt, the processing unit determines whether the remaining usage of the token corresponding to the matching authorized unit identification data is zero; When the processing unit determines that the remaining usage of the token corresponding to the matching authorized unit identification data is not zero, the processing unit generates the estimated token usage according to the prompt. 如請求項1所述的令牌用量管理系統,其中,該處理單元根據該本次令牌使用量更新對應的該令牌剩餘使用量之後,該處理單元判斷更新後的該令牌剩餘使用量是否低於一警戒值; 當該處理單元判斷更新後的該令牌剩餘使用量低於該警戒值,該處理單元發送一指示出該令牌剩餘使用量低於該警戒值的警戒通知。 The token usage management system as described in claim 1, wherein the processing unit determines whether the remaining usage of the token after the update is lower than a warning value after the processing unit updates the remaining usage of the token corresponding to the current token usage; When the processing unit determines that the remaining usage of the token after the update is lower than the warning value, the processing unit sends a warning notification indicating that the remaining usage of the token is lower than the warning value. 一種令牌用量管理方法,藉由一令牌用量管理系統實施,該令牌用量管理系統適於與一生成式人工智慧系統及一使用端電子裝置通訊並包含一儲存單元及一處理單元,該儲存單元儲存有多個使用者帳號、多個分別對應於該等使用者帳號的單位識別資料,及一令牌管理資料,該令牌管理資料包含多個分別對應於多個被授權單位的被授權單位識別資料,及多個分別對應於該等被授權單位的令牌剩餘使用量,該方法包含: 當該使用端電子裝置以其中一使用者帳號登入該令牌用量管理系統且傳送一包含一提示詞的待發送資料,該處理單元判斷該使用者帳號對應的該單位識別資料是否與該等被授權單位識別資料其中一者相符; 該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後,該處理單元根據該提示詞產生一預估令牌使用量; 該處理單元判斷該預估令牌使用量是否不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量; 當該處理單元判斷該預估令牌使用量不大於相符的該被授權單位識別資料對應的該令牌剩餘使用量,該處理單元將一包含該待發送資料的答覆請求傳送給該生成式人工智慧系統; 該處理單元接收該生成式人工智慧系統回傳的對應於該答覆請求的一答覆結果及一本次令牌使用量;及 該處理單元將該答覆結果傳送給該使用端電子裝置並根據該本次令牌使用量更新對應的該令牌剩餘使用量。 A token usage management method is implemented by a token usage management system, which is suitable for communicating with a generative artificial intelligence system and a user-end electronic device and includes a storage unit and a processing unit. The storage unit stores multiple user accounts, multiple unit identification data corresponding to the user accounts, and a token management data, which includes multiple authorized unit identification data corresponding to multiple authorized units, and multiple token remaining usage corresponding to the authorized units. The method includes: When the user-end electronic device logs into the token usage management system with one of the user accounts and transmits a to-be-sent data including a prompt word, the processing unit determines whether the unit identification data corresponding to the user account matches one of the authorized unit identification data; After the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data, the processing unit generates an estimated token usage according to the prompt word; The processing unit determines whether the estimated token usage is not greater than the remaining usage of the token corresponding to the matching authorized unit identification data; When the processing unit determines that the estimated token usage is not greater than the remaining token usage corresponding to the corresponding authorized unit identification data, the processing unit transmits a response request including the data to be sent to the generative artificial intelligence system; The processing unit receives a response result corresponding to the response request and a token usage for this time returned by the generative artificial intelligence system; and The processing unit transmits the response result to the user-end electronic device and updates the corresponding remaining token usage according to the token usage for this time. 如請求項4所述的令牌用量管理方法,於該處理單元判斷該使用者帳號對應的該單位識別資料與該等被授權單位識別資料其中一者相符後且於該處理單元根據該提示詞產生該預估令牌使用量之前,還包含: 該處理單元判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量是否為零;及 當該處理單元判斷相符的該被授權單位識別資料對應的該令牌剩餘使用量非為零,該處理單元根據該提示詞產生該預估令牌使用量。 The token usage management method as described in claim 4, after the processing unit determines that the unit identification data corresponding to the user account matches one of the authorized unit identification data and before the processing unit generates the estimated token usage according to the prompt, further includes: The processing unit determines whether the remaining usage of the token corresponding to the matching authorized unit identification data is zero; and When the processing unit determines that the remaining usage of the token corresponding to the matching authorized unit identification data is not zero, the processing unit generates the estimated token usage according to the prompt. 如請求項4所述的令牌用量管理方法,該處理單元根據該本次令牌使用量更新對應的該令牌剩餘使用量之後,還包含: 該處理單元判斷更新後的該令牌剩餘使用量是否低於一警戒值;及 當該處理單元判斷更新後的該令牌剩餘使用量低於該警戒值,該處理單元發送一指示出該令牌剩餘使用量低於該警戒值的警戒通知。 As described in claim 4, the token usage management method further includes: after the processing unit updates the remaining usage of the token corresponding to the current token usage: The processing unit determines whether the remaining usage of the updated token is lower than a warning value; and When the processing unit determines that the remaining usage of the updated token is lower than the warning value, the processing unit sends a warning notification indicating that the remaining usage of the token is lower than the warning value.
TW113101149A 2024-01-11 2024-01-11 System and method for managing token usage TWI867936B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW113101149A TWI867936B (en) 2024-01-11 2024-01-11 System and method for managing token usage
JP2025003399A JP7795657B2 (en) 2024-01-11 2025-01-09 SYSTEM AND METHOD FOR MANAGING TOKEN USAGE - Patent application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW113101149A TWI867936B (en) 2024-01-11 2024-01-11 System and method for managing token usage

Publications (2)

Publication Number Publication Date
TWI867936B true TWI867936B (en) 2024-12-21
TW202528982A TW202528982A (en) 2025-07-16

Family

ID=94769839

Family Applications (1)

Application Number Title Priority Date Filing Date
TW113101149A TWI867936B (en) 2024-01-11 2024-01-11 System and method for managing token usage

Country Status (2)

Country Link
JP (1) JP7795657B2 (en)
TW (1) TWI867936B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241421A (en) * 2017-06-21 2017-10-10 北京云联万维技术有限公司 A kind of cloud host resource method for obligating and device
CN107944965A (en) * 2017-12-04 2018-04-20 惠州市德度实业发展有限公司 A kind of lease of intelligence water purification renting machine expires based reminding method and system
TWI738277B (en) * 2020-03-31 2021-09-01 中國信託商業銀行股份有限公司 Monitoring alarm method and its server end
CN114445179A (en) * 2021-12-30 2022-05-06 中国电信股份有限公司 Service recommendation method and device, electronic equipment and computer readable medium
CN115345696A (en) * 2022-07-22 2022-11-15 中国电信股份有限公司 Traffic package order business processing method, device, electronic device and storage medium
CN116070743A (en) * 2022-12-29 2023-05-05 中国电信股份有限公司 Arrears warning method, device, electronic equipment and storage medium
TWM655059U (en) * 2024-01-11 2024-05-01 玉山商業銀行股份有限公司 Token Usage Management System

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6334920B2 (en) 2014-01-07 2018-05-30 キヤノン株式会社 Authority management server and authority management method
US20240362476A1 (en) 2023-04-30 2024-10-31 Box, Inc. Generating a large language model prompt based on collaboration activities of a user

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241421A (en) * 2017-06-21 2017-10-10 北京云联万维技术有限公司 A kind of cloud host resource method for obligating and device
CN107944965A (en) * 2017-12-04 2018-04-20 惠州市德度实业发展有限公司 A kind of lease of intelligence water purification renting machine expires based reminding method and system
TWI738277B (en) * 2020-03-31 2021-09-01 中國信託商業銀行股份有限公司 Monitoring alarm method and its server end
CN114445179A (en) * 2021-12-30 2022-05-06 中国电信股份有限公司 Service recommendation method and device, electronic equipment and computer readable medium
CN115345696A (en) * 2022-07-22 2022-11-15 中国电信股份有限公司 Traffic package order business processing method, device, electronic device and storage medium
CN116070743A (en) * 2022-12-29 2023-05-05 中国电信股份有限公司 Arrears warning method, device, electronic equipment and storage medium
TWM655059U (en) * 2024-01-11 2024-05-01 玉山商業銀行股份有限公司 Token Usage Management System

Also Published As

Publication number Publication date
TW202528982A (en) 2025-07-16
JP2025109191A (en) 2025-07-24
JP7795657B2 (en) 2026-01-07

Similar Documents

Publication Publication Date Title
US11042876B2 (en) Transaction method and system based on centralized settlement and blockchain deposit certificates
CN110941679B (en) Contract data processing method, related equipment and medium
EP3812993B1 (en) Method and apparatus for constructing merkle trees, and method and apparatus for simplified payment verification
EP3813296B1 (en) Methods and apparatuses for reading blockchain data
TWI724730B (en) Storage method, system, device and equipment for personal asset change records
CN109802941A (en) A kind of login validation method, device, storage medium and server
TWI706663B (en) Data storage method and system based on multiple blockchain networks
CN109784031B (en) A kind of account identity verification processing method and device
CN114157482A (en) Service access control method, device, control equipment and storage medium
WO2021234464A2 (en) Systems and methods for device detection and registration
CN114257551A (en) A distributed current limiting method and system, and storage medium
JP2018514019A (en) Method and system for identifying unique mobile devices based on changes in mobile device attributes over time
CN110020945B (en) A data reading method and system based on multiple blockchain networks
US8990154B2 (en) Request de-duplication for enterprise service bus
TWI706664B (en) Data storage method and system based on multiple blockchain networks
TWM655059U (en) Token Usage Management System
CN111079095A (en) ID generation method and system
TWI867936B (en) System and method for managing token usage
CN113821307B (en) Method, device and equipment for quickly importing virtual machine images
CN112926964B (en) Asset management method based on blockchain, electronic equipment and readable storage medium
CN114116412A (en) Identification method and device for client identification code, electronic equipment and medium
CN111371941A (en) Method and device for preventing harassing call, terminal and storage medium
US20220156779A1 (en) Method, apparatus, and computer device for calculating website user credit point
CN115131080A (en) Bill service processing method, server, computer device and storage medium
CN114979012A (en) Network flow current limiting method, system, device and computer storage medium