Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feet(openai-wrapper.ts, .env-sample, README.md, MEMO.md): Separate …
…Azure OpenAI API keys and endpoints for text, vision, and image Separated Azure OpenAI API keys and endpoints into three: text, vision, and image. This allows for individual configuration of each API's version and deployment name, providing more flexible settings. Also improved error messages to make it easier to identify the cause when a problem occurs. ✨ feat(botservice.ts, ExitPlugin.ts, UnuseImagesPlugin.ts): added ability to ignore images Added a new plugin `UnuseImagesPlugin`. This plugin instructs the bot to ignore images when the user asks to "ignore images". Also, a new function `isUnuseImages` was added to `botservice.ts` to determine whether to ignore images or not. This allows the bot to ignore images according to the user's request. 📝 fix(README.md, openai-wrapper.ts): Update documentation and default values Fixed some descriptions and default values in README.md that were incorrect. Specifically, corrected the default value for OPENAI_MODEL_NAME to be `gpt-3.5-turbo`, updated the version for AZURE_OPENAI_API_VERSION to `2023-12-01-preview`, and added to the description for AZURE_OPENAI_API_IMAGE_DEPLOYMENT_NAME that DALL-E 3 requires at least the 2023-12-01-preview API version. 📝 docs(README.md): Add support for GPT-4V Vision API and update Azure OpenAI API version By adding support for the GPT-4V Vision API, we have enabled the realization of multimodal text and images. Updating the Azure OpenAI API version allows us to use the latest features. Additionally, we added a new screenshot to visually demonstrate how users can interact with the bot. 🔧 refactor(botservice.ts): improve image fetching method and enhance error handling To improve the image fetching method, the getBase64Image function has been modified to include a token parameter. This makes the function more versatile and allows it to fetch images with different authentication tokens. Additionally, to enhance error handling, a check has been added to ensure the fetch response is successful. This ensures that the application functions correctly even if image fetching fails. 🔧 refactor(openai-wrapper.ts): completed transition from function_call to tool_calls The OpenAI API has been updated to use tool_calls instead of function_call. This change makes the code compatible with the new API and prevents future incompatibility issues. Additionally, this change improves the ability to handle multiple tool calls simultaneously.
- Loading branch information