mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-12 12:03:06 +08:00
Use hooks for "evaluate" tasks
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { useGenericTaskAPI } from "../useGenericTaskAPI";
|
||||
|
||||
interface RankInitialPromptsTask {
|
||||
id: string;
|
||||
type: "rank_initial_prompts";
|
||||
prompts: string[];
|
||||
}
|
||||
|
||||
export const useRankInitialPromptsTask = () => useGenericTaskAPI<RankInitialPromptsTask>("rank_initial_prompts");
|
||||
Reference in New Issue
Block a user