... setopt( ::hCurl, HB_CURLOPT_HTTPHEADER, aHeaders )
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, "" )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hContents[ "role" ] = "user"
hContents[ "parts" ] = { { "text" => cPrompt ...
Search found 34 matches: buff
Searched query: buff
- Thu Feb 13, 2025 8:34 am
- Forum: Artificial Intelligence examples
- Topic: Class TGemini to use Google Gemini AI
- Replies: 0
- Views: 145
- Wed Jan 29, 2025 10:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using DeepSeek locally using Ollama
- Replies: 11
- Views: 1827
Using DeepSeek locally using Ollama
... setopt( ::hCurl, HB_CURLOPT_HTTPHEADER, aHeaders )
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, '' )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hRequest[ "model" ] = ::cModel
hMessage1[ "role" ] = "user"
hMessage1 ...
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, '' )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hRequest[ "model" ] = ::cModel
hMessage1[ "role" ] = "user"
hMessage1 ...
- Sat Jan 18, 2025 8:43 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Problemas con curl compilado msvc y harbour
- Replies: 3
- Views: 8281
Problemas con curl compilado msvc y harbour
... hInfo )
oCurl = curl_easy_init()
IF !EMPTY( cUrl )
curl_easy_setopt( oCurl, HB_CURLOPT_URL, cUrl )
curl_easy_setopt( oCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( oCurl, HB_CURLOPT_SSL_VERIFYPEER, 0 )
curl_easy_setopt( oCurl, HB_CURLOPT_POSTFIELDS, enviar )
curl_easy_setopt( oCurl ...
oCurl = curl_easy_init()
IF !EMPTY( cUrl )
curl_easy_setopt( oCurl, HB_CURLOPT_URL, cUrl )
curl_easy_setopt( oCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( oCurl, HB_CURLOPT_SSL_VERIFYPEER, 0 )
curl_easy_setopt( oCurl, HB_CURLOPT_POSTFIELDS, enviar )
curl_easy_setopt( oCurl ...
- Thu Jan 16, 2025 5:16 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: new Class TDeepSeek in next FWH 24.12
- Replies: 16
- Views: 35414
Re: new Class TDeepSeek in next FWH 24.12
... setopt( cCurl, HB_CURLOPT_PROTOCOLS, HB_CURLPROTO_HTTPS)
curl_easy_setopt( cCurl, HB_CURLOPT_URL , cURL )
curl_easy_setopt( cCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( cCurl, HB_CURLOPT_HTTPHEADER , {"Content-Type: application/json"})
curl_easy_setopt( cCurl, HB_CURLOPT_CUSTOMREQUEST ...
curl_easy_setopt( cCurl, HB_CURLOPT_URL , cURL )
curl_easy_setopt( cCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( cCurl, HB_CURLOPT_HTTPHEADER , {"Content-Type: application/json"})
curl_easy_setopt( cCurl, HB_CURLOPT_CUSTOMREQUEST ...
- Sun Jan 12, 2025 7:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: new Class TDeepSeek in next FWH 24.12
- Replies: 16
- Views: 35414
Re: new Class TDeepSeek in next FWH 24.12
... setopt( ::hCurl, HB_CURLOPT_HTTPHEADER, aHeaders )
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, '' )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hRequest[ "model" ] = ::cModel
hMessage1[ "role" ] = "system"
hMessage1 ...
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, '' )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hRequest[ "model" ] = ::cModel
hMessage1[ "role" ] = "system"
hMessage1 ...
- Sun Jan 12, 2025 7:54 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Nueva Clase TDeepSeek en FWH 24.12
- Replies: 1
- Views: 605
Re: Nueva Clase TDeepSeek en FWH 24.12
... setopt( ::hCurl, HB_CURLOPT_HTTPHEADER, aHeaders )
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, '' )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hRequest[ "model" ] = ::cModel
hMessage1[ "role" ] = "system"
hMessage1 ...
curl_easy_setopt( ::hCurl, HB_CURLOPT_USERNAME, '' )
curl_easy_setopt( ::hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( ::hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
hRequest[ "model" ] = ::cModel
hMessage1[ "role" ] = "system"
hMessage1 ...
- Tue Jan 07, 2025 12:38 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: OpenAI vision API from FWH
- Replies: 10
- Views: 8802
Re: OpenAI vision API from FWH
... símbolo externo não resolvido _HB_FUN_CURL_EASY_PERFORM
openai1.obj : error LNK2001: símbolo externo não resolvido _HB_FUN_CURL_EASY_GETINFO
openai1.obj : error LNK2001: símbolo externo não resolvido _HB_FUN_CURL_EASY_DL_BUFF_GET
Harbour 32 and MSVC 2022.
Which libs is missing?
Thanks in advance.
openai1.obj : error LNK2001: símbolo externo não resolvido _HB_FUN_CURL_EASY_GETINFO
openai1.obj : error LNK2001: símbolo externo não resolvido _HB_FUN_CURL_EASY_DL_BUFF_GET
Harbour 32 and MSVC 2022.
Which libs is missing?
Thanks in advance.
- Tue Jul 16, 2024 8:07 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to Curl for text messaging
- Replies: 5
- Views: 4905
Re: How to Curl for text messaging
... POSTFIELDS, cPostFields )
curl_easy_setopt( hCurl, HB_CURLOPT_USERPWD, ACCOUNT_SID + ':' + AUTH_TOKEN )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( hCurl, HB_CURLOPT_VERBOSE, 1 )
curl_easy_setopt( hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
nError := curl_easy_perform ...
curl_easy_setopt( hCurl, HB_CURLOPT_USERPWD, ACCOUNT_SID + ':' + AUTH_TOKEN )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( hCurl, HB_CURLOPT_VERBOSE, 1 )
curl_easy_setopt( hCurl, HB_CURLOPT_SSL_VERIFYPEER, .F. )
nError := curl_easy_perform ...
- Sun Sep 03, 2023 2:47 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Execute php or vbs code
- Replies: 18
- Views: 2335
Re: Execute php or vbs code
... nil
function callPHP( cUrl )
local hCurl, uValue
if ! empty( hCurl := curl_easy_init() )
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrl )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
if curl_easy_perform( hCurl ) == 0
uValue = curl_easy_dl_buff_get( hCurl )
endif
endif
return uValue
function callPHP( cUrl )
local hCurl, uValue
if ! empty( hCurl := curl_easy_init() )
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrl )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
if curl_easy_perform( hCurl ) == 0
uValue = curl_easy_dl_buff_get( hCurl )
endif
endif
return uValue
- Tue Jul 18, 2023 10:10 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Conectar a un SFTP con CURL usando xHarbour ...
- Replies: 10
- Views: 1650
Conectar a un SFTP con CURL usando xHarbour ...
... hCurl, HB_CURLOPT_PROTOCOLS, HB_CURLPROTO_SFTP)
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrlFileName )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( hCurl, HB_CURLOPT_UPLOAD )
curl_easy_setopt( hCurl, HB_CURLOPT_UL_FILE_SETUP, cFileName )
// curl_easy_setopt( hCurl, HB ...
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrlFileName )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( hCurl, HB_CURLOPT_UPLOAD )
curl_easy_setopt( hCurl, HB_CURLOPT_UL_FILE_SETUP, cFileName )
// curl_easy_setopt( hCurl, HB ...
- Thu Jun 29, 2023 12:14 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Conectar SFTP con CURL
- Replies: 5
- Views: 15935
Re: Conectar SFTP con CURL
... hCurl, HB_CURLOPT_PROTOCOLS, HB_CURLPROTO_SFTP)
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrlFileName )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( hCurl, HB_CURLOPT_UPLOAD )
curl_easy_setopt( hCurl, HB_CURLOPT_UL_FILE_SETUP, cFileName )
// curl_easy_setopt( hCurl, HB ...
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrlFileName )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
curl_easy_setopt( hCurl, HB_CURLOPT_UPLOAD )
curl_easy_setopt( hCurl, HB_CURLOPT_UL_FILE_SETUP, cFileName )
// curl_easy_setopt( hCurl, HB ...
- Sat Apr 15, 2023 2:42 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Funciones de FWH
- Replies: 9
- Views: 1338
Re: Funciones de FWH
... existe el programa
se llama fwfuncs.prg
se encuentra en la carpeta samples
existe desde las versiones del año 2020
Gracias Marco Augusto. :D
Buff , ahora ya cuadra el tema , me lo debio de pasar el Sr. Rao en el 2019 con el nombre funcslst.prg y posteriormente se incluyo en
Fivewin con el ...
se llama fwfuncs.prg
se encuentra en la carpeta samples
existe desde las versiones del año 2020
Gracias Marco Augusto. :D
Buff , ahora ya cuadra el tema , me lo debio de pasar el Sr. Rao en el 2019 con el nombre funcslst.prg y posteriormente se incluyo en
Fivewin con el ...
- Fri Sep 09, 2022 5:23 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: INTEGRACION CON DLL PARA CONECTAR CON DISPOSITIVOS ANVIZ
- Replies: 27
- Views: 3510
Re: INTEGRACION CON DLL PARA CONECTAR CON DISPOSITIVOS ANVIZ
... 46;com/alebianky/aNVIZ
y ahi aparece un fichero de cabecera para C:
API_EXTERN int CChex_Update(void *CchexHandle, int *DevIdx, int *Type, char *Buff, int Len);
prueba asi:
HB_FUNC( CCHEX_UPDATE ){ int DevIdx = hb_parni( 2 ); int Type = hb_parni( 3 ); hb_retnl( ...
y ahi aparece un fichero de cabecera para C:
API_EXTERN int CChex_Update(void *CchexHandle, int *DevIdx, int *Type, char *Buff, int Len);
prueba asi:
HB_FUNC( CCHEX_UPDATE ){ int DevIdx = hb_parni( 2 ); int Type = hb_parni( 3 ); hb_retnl( ...
- Fri Sep 09, 2022 5:03 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: INTEGRACION CON DLL PARA CONECTAR CON DISPOSITIVOS ANVIZ
- Replies: 27
- Views: 3510
Re: INTEGRACION CON DLL PARA CONECTAR CON DISPOSITIVOS ANVIZ
Esta declaración:
int CChex_Update(IntPtr CchexHandle, int[] DevIdx, int[] Type, IntPtr Buff, int Len)
no es una declaración de lenguaje C, sino de C#, lo cual significa que puede ser una DLL para .Net
De ser asi, no podemos usarla directamente desde Harbour
Puedes preguntarle al fabricante que te ...
int CChex_Update(IntPtr CchexHandle, int[] DevIdx, int[] Type, IntPtr Buff, int Len)
no es una declaración de lenguaje C, sino de C#, lo cual significa que puede ser una DLL para .Net
De ser asi, no podemos usarla directamente desde Harbour
Puedes preguntarle al fabricante que te ...
- Tue Sep 06, 2022 11:35 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: INTEGRACION CON DLL PARA CONECTAR CON DISPOSITIVOS ANVIZ
- Replies: 27
- Views: 3510
Re: INTEGRACION CON DLL PARA CONECTAR CON DISPOSITIVOS ANVIZ
... Function】The Return value get or set asynchronously.。
2.5.2 Request
【Mode】int CChex_Update(IntPtr CchexHandle, int[] DevIdx, int[] Type, IntPtr Buff, int Len);
【Parameter】CchexHandle,CChex_Start successfully create the handle,Input[Parameter];
DevIdx,Device index returned asynchronously,Output ...
2.5.2 Request
【Mode】int CChex_Update(IntPtr CchexHandle, int[] DevIdx, int[] Type, IntPtr Buff, int Len);
【Parameter】CchexHandle,CChex_Start successfully create the handle,Input[Parameter];
DevIdx,Device index returned asynchronously,Output ...