Skip to content

Commit c98caf2

Browse files
committed
Minor test fixtures fixes
1 parent 5017749 commit c98caf2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

models/spring-ai-bedrock/src/test/java/org/springframework/ai/bedrock/llama/BedrockLlamaCreateRequestTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ public void createRequestWithChatOptions() {
5151
var request = client.createRequest(new Prompt("Test message content"));
5252

5353
assertThat(request.prompt()).isNotEmpty();
54-
assertThat(request.temperature()).isEqualTo(66.6f);
55-
assertThat(request.topP()).isEqualTo(0.66f);
54+
assertThat(request.temperature()).isEqualTo(66.6);
55+
assertThat(request.topP()).isEqualTo(0.66);
5656
assertThat(request.maxGenLen()).isEqualTo(666);
5757

5858
request = client.createRequest(new Prompt("Test message content",
5959
BedrockLlamaChatOptions.builder().withTemperature(99.9).withMaxGenLen(999).withTopP(0.99).build()));
6060

6161
assertThat(request.prompt()).isNotEmpty();
62-
assertThat(request.temperature()).isEqualTo(99.9f);
63-
assertThat(request.topP()).isEqualTo(0.99f);
62+
assertThat(request.temperature()).isEqualTo(99.9);
63+
assertThat(request.topP()).isEqualTo(0.99);
6464
assertThat(request.maxGenLen()).isEqualTo(999);
6565
}
6666

models/spring-ai-moonshot/src/test/java/org/springframework/ai/moonshot/MoonshotChatCompletionRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void chatCompletionDefaultRequestTest() {
3838

3939
assertThat(request.messages()).hasSize(1);
4040
assertThat(request.topP()).isEqualTo(1);
41-
assertThat(request.temperature()).isEqualTo(0.7f);
41+
assertThat(request.temperature()).isEqualTo(0.7);
4242
assertThat(request.maxTokens()).isNull();
4343
assertThat(request.stream()).isFalse();
4444
}

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/groq-chat.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NOTE: The Groq API is not fully compatible with the OpenAI API.
1313
Be aware for the following https://console.groq.com/docs/openai[compatability constrains].
1414
Additionally, currently Groq doesn't support multimodal messages.
1515

16-
Check the https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/GroqWithOpenAiChatModelIT.java[GroqWithOpenAiChatModelIT.java] tests
16+
Check the https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/proxy/GroqWithOpenAiChatModelIT.java[GroqWithOpenAiChatModelIT.java] tests
1717
for examples of using Groq with Spring AI.
1818

1919
== Prerequisites

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ For this, you need to configure the OpenAI base URL to your Ollama instance: `sp
189189

190190
image::spring-ai-ollama-over-openai.jpg[Ollama OpenAI API compatibility, 800, 600, align="center"]
191191

192-
Check the link:https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OllamaWithOpenAiChatModelIT.java[OllamaWithOpenAiChatModelIT.java] tests for examples of using Ollama over Spring AI OpenAI.
192+
Check the link:https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/proxy/OllamaWithOpenAiChatModelIT.java[OllamaWithOpenAiChatModelIT.java] tests for examples of using Ollama over Spring AI OpenAI.
193193

194194
== Sample Controller
195195

0 commit comments

Comments
 (0)