WordPress
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user