Skip to content

api service sometimes waits for a long time, may be related to calling github? #13454

Description

@Gaocarri

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 search for existing issues, 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

0.15.0、0.15.1、0.15.2、0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

After upgrade to 0.15 from 0.14, api service sometimes waits for a long time or failed.
I found api service will get https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json,because of my server's network, it is not stable to get raw.githubusercontent.com. I haven't confirmed in detail what it does.

ping result:
Image

I'm not sure if it's related to this issu. If so, i think direct access to github is unreasonable, is there any solution?

✔️ Expected Behavior

Api service can be accessed normally

❌ Actual Behavior

Api service sometimes wait for a long time, unstable

Metadata

Metadata

Labels

good first issueGood first issue for newcomers🐞 bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions