File size: 325 Bytes
cc1ccff
41c0d09
 
cc1ccff
41c0d09
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { useState } from "react";

// Manage chat settings and trigger onChange when settings change
export function useChatSettings() {
  const [settings, setSettings] = useState({
    system: "You are a helpful assistant.",
    temperature: 0.7,
    top_p: 1,
    max_tokens: 512,
  });
  return [settings, setSettings];
}