Skip to content

Commit

Permalink
Merge pull request #2 from kromiii/gpt-4o
Browse files Browse the repository at this point in the history
Update model variable value to 'gpt-4o'.
  • Loading branch information
Kazuhiko Yamashita authored Jun 7, 2024
2 parents f2f13af + 1204863 commit c71a0e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const appMention: any = async ({ event, client, say }) => {
}

const nonNullable = <T>(value: T): value is NonNullable<T> => value != null
let model = 'gpt-4-turbo'
let model = 'gpt-4o'

Check failure on line 21 in src/mention.ts

View workflow job for this annotation

GitHub Actions / test_and_lint

'model' is never reassigned. Use 'const' instead
let max_tokens = null
const threadMessages = await Promise.all(
replies.messages.map(async (message) => {
Expand All @@ -38,7 +38,6 @@ export const appMention: any = async ({ event, client, say }) => {
}

if (encodedImage) {
model = 'gpt-4-vision-preview'
max_tokens = 4096
contents.push(
{
Expand Down

0 comments on commit c71a0e8

Please sign in to comment.