chore: config base url
This commit is contained in:
@@ -165,23 +165,10 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
};
|
||||
|
||||
const generateParams = () => {
|
||||
// preview
|
||||
let stream_options: Record<string, any> = {
|
||||
stream_options_chunk_size: 16 * 1024,
|
||||
stream_options_chunk_result: true
|
||||
};
|
||||
|
||||
if (parameters.preview) {
|
||||
stream_options = {
|
||||
stream_options_preview_faster: true
|
||||
};
|
||||
}
|
||||
|
||||
const params = {
|
||||
..._.omitBy(finalParameters, (value: string) => !value),
|
||||
seed: parameters.random_seed ? generateRandomNumber() : parameters.seed,
|
||||
stream: true,
|
||||
...stream_options,
|
||||
stream: false,
|
||||
prompt: currentPrompt
|
||||
};
|
||||
return params;
|
||||
|
||||
Reference in New Issue
Block a user