langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
35.59k stars 4.8k forks source link

feature: Add presence_penalty and frequency_penalty parameters to the … #5637

Closed liuzhenghua closed 1 day ago

liuzhenghua commented 3 days ago

…Xinference inference engine

Description

Add presence_penalty and frequency_penalty parameters to the Xinference inference engine

Fixes # (issue)

Type of Change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration When using Xinference as a model provider, two additional optional parameters are available: presence_penalty and frequency_penalty.

image

Suggested Checklist: