Logo
Explore Help
Register Sign In
zlei6/ragflow
1
0
Fork 0
You've already forked ragflow
mirror of https://github.com/infiniflow/ragflow.git synced 2026-07-08 12:24:48 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
6796a47b8d37ff4464e06ffc1a4ddb5c8ea830d1
ragflow/conf/models/replicate.json

28 lines
471 B
JSON
Raw Normal View History

Add Replicate chat provider (#14958) ## What - Add Replicate as a chat provider backed by the documented predictions API - Register Replicate in the Go model factory and provider config - Support non-streaming chat through sync predictions, polling fallback, streaming through `urls.stream`, model listing, and connection checks ## Notes - Uses `POST /v1/predictions` with Replicate model identifiers in `version`, which supports official and community model identifiers - Maps RAGFlow messages into Replicate prompt-shaped inputs (`prompt`, optional `system_prompt`) and forwards common documented LLM inputs: `max_new_tokens`, `temperature`, `top_p` - Preserves whitespace in SSE output chunks and emits RAGFlow `[DONE]` at stream completion ## Tests - `go test -vet=off -run TestReplicate -count=1 ./internal/entity/models` - `go test -vet=off -count=1 ./internal/entity/models` Refs #14736
2026-05-18 17:10:36 -10:00
{
"name": "Replicate",
"url": {
"default": "https://api.replicate.com"
},
"url_suffix": {
"chat": "v1/predictions",
"models": "v1/models"
},
"class": "replicate",
"models": [
{
"name": "meta/meta-llama-3-70b-instruct",
"max_tokens": 8192,
"model_types": [
"chat"
]
},
{
"name": "meta/meta-llama-3-8b-instruct",
"max_tokens": 8192,
"model_types": [
"chat"
]
}
]
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 35ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API