Skip to content

Commit 8f5b7d1

Browse files
committed
✨Support gpt-4-vision-preview model
✨ 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
1 parent 953872d commit 8f5b7d1

13 files changed

+886
-600
lines changed

compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
OPENAI_API_KEY: ${OPENAI_API_KEY}
1212
OPENAI_MODEL_NAME: ${OPENAI_MODEL_NAME}
1313
OPENAI_IMAGE_MODEL_NAME: ${OPENAI_IMAGE_MODEL_NAME}
14+
OPENAI_VISION_MODEL_NAME: ${OPENAI_VISION_MODEL_NAME}
1415
OPENAI_MAX_TOKENS: ${OPENAI_MAX_TOKENS}
1516
MAX_PROMPT_TOKENS: ${MAX_PROMPT_TOKENS}
1617
PLUGINS: ${PLUGINS}

0 commit comments

Comments
 (0)