Fix OpenAiApi tool_choice value and refactor MistralAi class

This commit is contained in:
Ricken Bazolo
2024-03-21 09:41:26 +01:00
committed by Christian Tzolov
parent 766b420f98
commit 8510f00520
3 changed files with 3 additions and 3 deletions

View File

@@ -705,7 +705,7 @@ public class MistralAiApi {
.toEntity(ChatCompletion.class);
}
private MIstralAiStreamFunctionCallingHelper chunkMerger = new MIstralAiStreamFunctionCallingHelper();
private MistralAiStreamFunctionCallingHelper chunkMerger = new MistralAiStreamFunctionCallingHelper();
/**
* Creates a streaming chat response for the given chat conversation.

View File

@@ -37,7 +37,7 @@ import org.springframework.util.CollectionUtils;
* @author Christian Tzolov
* @since 0.8.1
*/
public class MIstralAiStreamFunctionCallingHelper {
public class MistralAiStreamFunctionCallingHelper {
/**
* Merge the previous and current ChatCompletionChunk into a single one.

View File

@@ -380,7 +380,7 @@ public class OpenAiApi {
/**
* Model can pick between generating a message or calling a function.
*/
public static final String AUTO = "none";
public static final String AUTO = "auto";
/**
* Model will not call a function and instead generates a message
*/