Skip to content

Commit

Permalink
Merge pull request #104 from teknologi-umum/vision
Browse files Browse the repository at this point in the history
Use proper model for vision
  • Loading branch information
ronnygunawan authored Jan 30, 2024
2 parents 27ca944 + e32d1ca commit f37ce8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions BotNet.CommandHandlers/AI/OpenAI/OpenAIImagePromptHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ select ChatMessage.FromText(
);

string response = await _openAIClient.ChatAsync(
model: imagePrompt switch {
({ Command: { Sender: VIPSender } or { Chat: HomeGroupChat } }) => "gpt-4-1106-preview",
_ => "gpt-3.5-turbo"
},
model: "gpt-4-vision-preview",
messages: messages,
maxTokens: 512,
cancellationToken: cancellationToken
Expand Down

0 comments on commit f37ce8f

Please sign in to comment.