


LLM ?????? ?? ? ? Spring WebFlux? ???? ServerB?? ServerC ?? ? ?? ??? ???? ??? ??????
Apr 19, 2025 pm 04:30 PM??? ? ???? ???? LLM ?????? ?????? ? ?? ????
LLM ?????? ?? ? ? ??? ?? ??? ?????? ???? ??? ? ?? ? ?? ???? ???? ?? ? ? ??? ???????. ? ??? ?? Spring Webflux? ?????? ???? ??? ??? ????. ?? ?? B ??? ?? ????? B ??? ???? ?? ?? C? ?? ???? ??.
?? ??
LLM ????? ?? ??? ??? ????. ?????-> ?????-> ?? B. ?? B? ?? ????? ??? ???? ?????? ?? C? ?? ? ???? ??? ? ??? ????.?? ???? ?????? ?? B? ?? ?? ??? ???? ??? ?? C? ???? ?? ? ? ??????.
?? ?? ? ?? ???
?? ?? B ?? ?? C? ????? ??? ???? ?? sseHttp
???? ?? ?????.
??<response> ResponseFlux = webClient.create (URL) .??() .Headers (httpheaders-> Setheaders (httpheaders, ??))) .ContentType (MediaType.Application_json) .BodyValue (jsonbody) .????() .onstatus (?? -> ??! = httpstatus.ok, ?? -> { // ?? ?? ??}) // ... ?? ?? ...</response>
? ?? ??? ????? ??? ???? ?? B? ?? ?? ??? ???? ?? C? ???????. ?? ???? ? ?? ??? ????. ??? try-catch
Flux
???? ??? ?? ? ????. subscribe
??? ???? ???? ?? ?? ??? ? ??? ???? ????.
?? ?? : retryWhen
???? onErrorResume
?? ??? ???? ?? Spring Webflux?? ???? retryWhen
? onErrorResume
???? ???????.
?? sseHttp
???? ???? ? ?? ??? ??????.
??<response> ssehttp (string url) { webclient? ?????. .??() .Headers (httpheaders-> Setheaders (httpheaders, ??))) .ContentType (MediaType.Application_json) .BodyValue (jsonbody) .????() .onstatus (httpstatus :: iserror, clientResponse-> { // ??? ?? mono.error (new WebClientResponseException ( "?? ?? ?? ?? :"clientResponse.RawStatusCode (), ClientResponse.RawStatusCode (), ClientResponse.headers (). AshTtPheaders () }) .BodyToflux (typeref) .retryWhen (retry.backoff (3, duration.ofseconds) (1)) .filter (Throwable-> WARDABLE ???? WebClientResponseException) .OnRetryExhaEstedThrow ((??, ??) -> ??? GatewayException ( "?? ?? ? ?? B ? ?? C? ???? ?????.")); }</response>
? ??? onStatus
???? HTTP ?? ?? ??? ???? 1 ?? ?? ???? 3 ??? retryWhen
? ? ?? ?????. filter
WebClientResponseException
??? ?? ? ??? ? ?????. ? ??? ?? ???? GatewayException
? ?????.
?? ?? sseHttp
???? ?? ?? B? ??? ???? ?? C? ???? ?? onErrorResume
??????.
???<response> responsemono = ssehttp (Serverburl) .OnerRorResume (WebClientResponseException.class, ex-> { log.warn ( "?? b : {}", ex.getMessage ())? ???? ?????. // ?? ?? ?? return SSEHTTP (ServerCurl); }) .??();</response>
? ??? ?? ?? B? ????? ???? WebClientResponseException
???? ?? C? ????????. next()
???? ??? ?? ? ????????.
?? ???? ??? ?????
?? B? ?? C? ?? ???? ????? ???? ??? ?? ? ????????. AtomicBoolean
??? ??? ????? ?????? ??? ???? ? ??? ? ????.
Atomicboolean ?? = ??? Atomicboolean (False); ??<response> ssehttp (string url) { // ... (?? ??) ... .doonNext (?? -> { if (success.compareAndset (false, true)) { // ???? ?? ??} }) // ... (??? ???) ... }</response>
?? ?? ??? ?? ??? ?? ?? ??? ????? ???? LLM ?????? ? ???? ?? ? ????? ??? ? ?? ????? ??????. ?? ??? ?????? ?? ??? ??? ???????.
? ??? LLM ?????? ?? ? ? Spring WebFlux? ???? ServerB?? ServerC ?? ? ?? ??? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

PHP?? ?? ?? ??? ???? ?? ??? ? ???? ?? ??? ???? ?? ??? ???? ???? ????. 1. ?? ?? ??? ?? ??? URL ? ?? ??? ????. 2. UrlenCode? ???? ?? ??? ???????. 3. ? ???? ????? ?? ?? ??? ? ?? ??? ?????. 4. ???? ???? ?? ? ? ??? ??? ??? ??? ?????. 5. ??? ?? ??? ????? ?? ????? OG ??? ???? ?????. 6. XSS ??? ???? ?? ??? ??? ?????. ? ???? ??? ??? ???? ??? ?? ?? ??? ??? ???? ??? ?? ??? ?????.

AI? ??? ??? ?? ?? ? ?? ???? ????? ?? ??? ??????. 1. Baidu, Tencent API ?? ?? ?? NLP ?????? ?? ??? AI ?? ?? API? ??????. 2. PHP? ? ?? guzzle? ?? API? ???? ?? ??? ??????. 3. ?? ????? ?? ?? ??? ???? ???? ???? ??? ??? ? ????. 4. ?? ?? ? ?? ???? ?? PHP-L ? PHP_CODESNIFFER? ??????. 5. ???? ????? ???? ?? ?? ??? ?????? ??? ??????. AIAPI? ??? ? ???, ?? ??, ?? ? PHP ?? ??? ??? ???. ?? ???? PSR ??? ???, ??? ????? ????, ?? ??? ???, ????? ??? ????, X? ???????.

??? ?? ??? ??? ?? JavaScript? MediareCorder API? ?? PHP ???? ???? ?????. 2. PHP? ???? ?? ??? ???? STTAPI (? : Google ?? Baidu ?? ??)? ???? ???? ?????. 3. PHP? ???? AI ??? (? : OpenAigpt)? ????. 4. ?? ?? PHP? TTSAPI (? : Baidu ?? Google ?? ??)? ???? ??? ?? ??? ?????. 5. PHP? ?? ??? ??? ??? ??? ?? ?? ??? ?????. ?? ????? PHP? ?? ???? ?? ?? ?? ??? ??? ?????.

PHP? AI ??? ??? ?? ????? ??? API? ?? ?????. ??? ??? ????? ? ??? ???? ?????. API ??? ?? ?? ??? ???? ??? ??? ???? ???? ? ????. 2. ?? ?? ???? guzzle ?? curl? ???? HTTP ??? ???, JSON ??? ??? ? ???, API ? ?? ??, ??? ? ?? ??? ???? ??, ??? ?? ?? ? ? ?? ????, ??? ?? ? ?????? ?????. 3. ???? ???? ?? ???? API ??, ?? ? ??? ?? ??, ??? ?? ??, ?? ?? ? ??? ??? ??? ?????. ?? ??? ??? ??? ? ??? ???? Propt ?? ? ?? ?? ??, ??? ?? ? ?? ????, ?? ?? ?? ???? ? ??? ?? ? ???? ????? ?????.

PHP? ?????? ????? ?? ?? ?? ???? ???? ?? ???? ???? ?? ?? ???? ?????. 2. ?? ??? ???? ???? ?? ??? ?? ? ??? ??? ???? ?? API/Webhook ??? ??? ?? ???? ??? ??? ??? ??? ?????. 3. ?? ????? ?? ??, ??/???? ????, ???? ??, ???? ? ??? ?????? ????? ?? ??? ???? ???? ?? Dingtalk, SMS ?? ??? ???? ??? ?????? ???? ?? ? ??? ??? ????? ?? ??? ???? ???????.

??? AI ?? ?? ???? ???? PHPSDK? ??????. 2. PHP? ???? FFMPEG? ???? ???? API ?? ?? (? : WAV)?? ?????. 3. ??? ???? ????? ????? API ???? ??? ??????. 4. NLP ??? ???? JSON ??? ???? ???? ?????. 5. ?? ??? ???? ???? ?? ?? ?? ?? ?? ??? ?????. ?? ????? ?? ?? ? ??? ???? ?? ??? ???, ??? ?? ? ??? ???????.

PHP? ??? ?? ??, ?????? ???? ? ?? AI ???? ???? ? ????? ??? ?? ????? ??? ? ??? ??? ??? ?????. 2.?? ??? ?? ?? ??? ????? ???????. ??? ??? ??? ???, PHP ??? ??? ? ?? ??? ???? ?? ?? ?? ??? ???? ??? OpenAI ?? DialogFlow? ?? ?? AI ???? ???? ???? ??? ????. 3. ?? ??? ???? ???? ???? ?? PHP? ?? MySQL ? ?? ??????? ?????. 4. ?? AI ???? guzzle? ???? HTTP ??? ??? Apikeys? ???? ???? ?? ?? ? ?? ??? ? ???????. 5. ?????? ????? ??, ???, ?? ?? ? ??? ???? ???????, ???? ????? ???? ?? ? ??? ???? ?? ???? ???????.

AI ?? API? ??? ? ???, ??, ?? ?? ? ?? ???? ??? ???????. 2. PHP? Guzzle? ???? ??? ??? ??? JSON_DECODE? ???? ?? ? JSON ???? ???? ?? ? ?? ?? ?????? ?????. 3. AI ???? ????? ????? ?? ????? ??? ? ??? ??? ???????. 4. ??, ??? ? ? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ??? ??? ? ? ????.
