mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 20:58:12 +00:00
Add modal to show completion response data (#324)
This commit is contained in:
@@ -31,12 +31,12 @@ export const getDefaultAppForm = (): EditFormType => {
|
||||
|
||||
return {
|
||||
chatModel: {
|
||||
model: defaultChatModel.model,
|
||||
model: defaultChatModel?.model,
|
||||
systemPrompt: '',
|
||||
temperature: 0,
|
||||
quotePrompt: '',
|
||||
quoteTemplate: '',
|
||||
maxToken: defaultChatModel.contextMaxToken / 2,
|
||||
maxToken: defaultChatModel ? defaultChatModel.contextMaxToken / 2 : 4000,
|
||||
frequency: 0.5,
|
||||
presence: -0.5
|
||||
},
|
||||
|
7
client/src/utils/common/file/index.tsx
Normal file
7
client/src/utils/common/file/index.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getFileViewUrl } from '@/api/support/file';
|
||||
|
||||
export async function getFileAndOpen(fileId: string) {
|
||||
const url = await getFileViewUrl(fileId);
|
||||
const asPath = `${location.origin}${url}`;
|
||||
window.open(asPath, '_blank');
|
||||
}
|
Reference in New Issue
Block a user