Search found 48 matches: tokens

Return to advanced search

Re: random sentences generator

Dear Otto, In this example you can visually review how we organize the tokens, so its easier to understand how it works :-) llml.prg #include "FiveWin.ch"static hTokens := {=>}function Main()   local n   Tokenizer( ...
by Antonio Linares
Fri Dec 01, 2023 5:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: random sentences generator
Replies: 6
Views: 644

Error alCompilar con xhb10272_xcc

Saludos Al forum Alguien me puede Orientar al compilar con xhb10272_xcc me da estos errores, \HARBOURX_V\xhb10272_xcc\bin\xhb .\prg\PXPClases.prg /n /m /es2 /gc1 -D__EXPORT__ -D__XHARBOUR__ /O.\obj_proy\objemp_xh\ /I\fwh\include /I\v_xharb_v3\include /I\HARBOURX_V\xhb10272_xcc\include /I\HARBOURX_V\...
by ruben Dario
Wed Sep 27, 2023 8:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error alCompilar con xhb10272_xcc
Replies: 2
Views: 154

Re: How to get libssl.lib and libcrypto.lib for MSC?

... dumpbin /exports %dll_file% > %exports_file% echo LIBRARY %lib_name% > %def_file% echo EXPORTS >> %def_file% for /f "skip=19 tokens=1,4" %%A in (%exports_file%) do if NOT "%%B" == "" (echo %%B @%%A >> %def_file%) lib /def:%def_file% /out:%lib_file% ...
by carlos vargas
Wed Jul 26, 2023 9:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to get libssl.lib and libcrypto.lib for MSC?
Replies: 3
Views: 265

Re: A simple LLM using Harbour's hashes

... base, I also receive a perfect response. What I would like is to send the entire FIVEWIN documentation, but it is much larger than the 4000 tokens. Best regards, Otto https://mybergland.com/fwforum/udb.jpg https://mybergland.com/fwforum/udb1.jpg
by Otto
Tue May 16, 2023 7:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A simple LLM using Harbour's hashes
Replies: 6
Views: 395

Re: A simple LLM using Harbour's hashes

... if, when I'm within a chat and I post multiple "knowledge bases" there, all of them are considered, and I can input more text than 4000 tokens. Also, I'm uncertain if, when I later open a chat, all the information will still be there? Best regards, Otto https://mybergland.com/fwforum/chatfw1.gif
by Otto
Tue May 16, 2023 6:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A simple LLM using Harbour's hashes
Replies: 6
Views: 395

Re: ChatGPT

Hello Otto; I don't think you need to ask for number of tokens used. Responses contain that information already. Here is a typical Json response I get: { "id": "cmpl-XxXXXXXXXXXXXXXXXXX", "object": "text_completion", ...
by reinaldocrespo
Tue May 09, 2023 9:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ChatGPT
Replies: 19
Views: 1165

Re: ChatGPT

... Can you please provide me a list of public holidays for 2024 in the format 'DD.MM.YYYY holiday name'? Also, please calculate the tokens for this request and determine the cost for the inquiry. The fee is $0.06/1K tokens. How many similar requests can I make for $1? Austria ChatGPT: ...
by Otto
Tue May 09, 2023 6:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ChatGPT
Replies: 19
Views: 1165

Re: autoGPT for OpenAI

Dear Reinaldo, In the source code, originally developed by Carlos Gallego, you find this:   TEXT INTO cJson   {      "prompt": "cPrompt_empty",      "temperature": 0,      "max_tokens": 2048   }   ENDTEXT Not sure if modifying the max_tokens value ma...
by Antonio Linares
Fri Apr 28, 2023 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: autoGPT for OpenAI
Replies: 15
Views: 1411

Re: autoGPT for OpenAI

... question and so far the answers are better than what my most seasoned and technical users have been coming up with. A typical document is 166 tokens. OpenAI answers are about 16 tokens at most for each document that is fed. #1 -- When you limit tokens, does that limit the answer or does that ...
by reinaldocrespo
Thu Apr 27, 2023 8:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: autoGPT for OpenAI
Replies: 15
Views: 1411

langChain and OpenAI

... files and making questions to them: Remove [:1000] to read the entire files contents, use it in case OpenAI complains about the amount of used tokens, or increase such value. docs.py from langchain.embeddings.openai import OpenAIEmbeddingsfrom langchain.text_splitter import CharacterTextSplitterfrom ...
by Antonio Linares
Fri Apr 07, 2023 7:14 am
 
Forum: Utilities / Utilidades
Topic: langChain and OpenAI
Replies: 0
Views: 241

Re: chatGPT writes and executes Harbour code !!!

Dear Antonio,
I made several requests to OpenAI and then the message came that my daily tokens were used up.

I will try chatGPT.

Can I make the requests from FIVEWIN (webview2) to chatGPT?

Best regards,
Otto
by Otto
Sun Dec 11, 2022 9:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: chatGPT writes and executes Harbour code !!!
Replies: 35
Views: 2727

Re: Extracting the lines from a text

hi, However hb_atokens() only accepts a single character for the delimiter. So can't pass CRLF to it https://github.com/Petewg/harbour-core/wiki/hb_A#hb_atokenscstring-cdelimiterleol-lskipstrings-ldoublequoteonly--atokens ...
by Jimmy
Mon Sep 26, 2022 3:50 am
 
Forum: Utilities / Utilidades
Topic: Extracting the lines from a text
Replies: 4
Views: 677

Re: GMail no funciona

... 2.0 ? Creo que en este foro hay formas de construir un token oauth 2.0 Tambien Matteo Baccan recientemente aporto una libreria para construir tokens jwt ¿ Es eso compendiado lo que le faltaria a Harbour para conectar con Oauth 2. 0 ?
by hmpaquito
Mon Apr 04, 2022 6:59 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GMail no funciona
Replies: 33
Views: 1981

API Bancaria (SOLUCIONADO)

... in the request, the scope of this Security_Token will be the default scope or scopes for each application. This endpoint returns the access tokens for grant types client_credentials, authorization_code and refresh_token. Según indican en la información al consumir el servicio con un GET ...
by gmart1
Mon Apr 12, 2021 8:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: API Bancaria (SOLUCIONADO)
Replies: 17
Views: 2233

Como obtener Token's de Portador en oAuth2

Hola,

Alguien tiene alguna rutina de como obtener automaticamente Tokens de Portador en oAuth2 con las credenciales correspondientes, se los agradeceria mucho y muchas gracias de antemano.
by noe aburto
Thu Oct 22, 2020 1:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Como obtener Token's de Portador en oAuth2
Replies: 0
Views: 314
Next

Return to advanced search