Skip to content

Commit

Permalink
Fix OpenAiApi tool_choice value and refactor MistralAi class
Browse files Browse the repository at this point in the history
  • Loading branch information
ricken07 authored and tzolov committed Mar 21, 2024
1 parent 766b420 commit 8510f00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ public ResponseEntity<ChatCompletion> chatCompletionEntity(ChatCompletionRequest
.toEntity(ChatCompletion.class);
}

private MIstralAiStreamFunctionCallingHelper chunkMerger = new MIstralAiStreamFunctionCallingHelper();
private MistralAiStreamFunctionCallingHelper chunkMerger = new MistralAiStreamFunctionCallingHelper();

/**
* Creates a streaming chat response for the given chat conversation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @author Christian Tzolov
* @since 0.8.1
*/
public class MIstralAiStreamFunctionCallingHelper {
public class MistralAiStreamFunctionCallingHelper {

/**
* Merge the previous and current ChatCompletionChunk into a single one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public static class ToolChoiceBuilder {
/**
* 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
*/
Expand Down

0 comments on commit 8510f00

Please sign in to comment.