Skip to content

OpenAI Tools plugin is not using base URL value entered for authentication #2342

@202472150920

Description

@202472150920

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Version1.11.2

Plugin version

0.1.2

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Install langgenius/openai_tool from marketplace
  2. Input authentication parameter
ChatAnywhere
OpenAI API Key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OpenAI Base URL: https://api.chatanywhere.tech
Press Save

I found 2 issue about this bug: #1984 & #1326 , specially in #1984 , yuki-js had provide solutions, but it still not fixed in Version1.11.2.

dify-official-plugins/tools/openai/provider/openai.py

✔️ Error log

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions