Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
This repository was archived by the owner on May 29, 2025. It is now read-only.

dify添加自定义模型报错:Credentials validation failed: JSON decode error #745

@bevis12

Description

@bevis12

接口定义:
async def openai_chat_completion(
request: OpenAICompletionRequest,
authorization: Optional[str] = Header(None)
):

接口输出格式:
res = {
"id": "",
"object": "chat.completion.chunk",
"created": 0,
"model": model_name,
"choices": [{"index": 0, "delta": {"content": ""}, "logprobs":None, "finish_reason": None}]
}

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