Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Admin0x002 opened this issue Feb 20, 2024 · 1 comment · May be fixed by #265
Open

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

Admin0x002 opened this issue Feb 20, 2024 · 1 comment · May be fixed by #265

Comments

@Admin0x002
Copy link

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

@Admin0x002
Copy link
Author

或者说如何在KeyStrategyFunctionapply方法中获取当次请求中的ChatCompletion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant