Fix OpenAiApi tool_choice value and refactor MistralAi class
This commit is contained in:
committed by
Christian Tzolov
parent
766b420f98
commit
8510f00520
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user