Skip to content

Commit

Permalink
✨Support gpt-4-vision-preview model
Browse files Browse the repository at this point in the history
    ✨ feat(compose.yaml): add OPENAI_VISION_MODEL_NAME environment variable
    ✨ feat(botservice.ts): add image support and separate user and assistant messages
    🔀 refactor(botservice.ts): make isMessageIgnored function asynchronous and add DM check
    🔧 refactor(package.json, botservice.ts, openai-wrapper.ts): update package versions and improve code organization
    🔧 refactor(types.ts, botservice.ts, openai-wrapper.ts, plugins): rename MessageData to MattermostMessageData
  • Loading branch information
takuya-o committed Nov 15, 2023
1 parent 953872d commit 8f5b7d1
Show file tree
Hide file tree
Showing 13 changed files with 886 additions and 600 deletions.
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENAI_MODEL_NAME: ${OPENAI_MODEL_NAME}
OPENAI_IMAGE_MODEL_NAME: ${OPENAI_IMAGE_MODEL_NAME}
OPENAI_VISION_MODEL_NAME: ${OPENAI_VISION_MODEL_NAME}
OPENAI_MAX_TOKENS: ${OPENAI_MAX_TOKENS}
MAX_PROMPT_TOKENS: ${MAX_PROMPT_TOKENS}
PLUGINS: ${PLUGINS}
Expand Down
Loading

0 comments on commit 8f5b7d1

Please sign in to comment.