Skip to content

使用KeyStrategyFunction如何根据每次请求时的内容进行切换key #264

Open
@Admin0x002

Description

@Admin0x002

KeyStrategyFunction的默认实现KeyRandomStrategy是随机获取一个key;
目前想根据请求时的内容进行切换不同的场景key,例如ChatCompletion新增了scene字段,如何根据该字段切换每次请求时的key

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions