WordPress

This commit is contained in:
Mohammad Zwaib
2026-07-15 20:47:58 +02:00
parent d6153521ca
commit daf48f3f91
29 changed files with 1203 additions and 128 deletions
@@ -11,12 +11,9 @@ import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import reactor.core.publisher.Mono;
import reactor.util.retry.Retry;
@@ -53,14 +50,16 @@ public class AzureMistralService {
String url = endPoint + "/openai/v1/chat/completions";
System.out.println(">>> MODELL = " + deployment + " | URL = " + url);
Map<String, Object> requstBody = Map.of(
"model", deployment,
"model", "gpt-5-mini-datazone",
"messages", List.of(
Map.of("role", "system","content",systemPrompt),
Map.of("role", "user","content", userPrompt)
),
"temperature", 0.5,
"max_tokens", maxTokens
"reasoning_effort", "minimal",
"max_completion_tokens", maxTokens
);
long c0 = System.currentTimeMillis();
String response = webClient.post()