mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-18 05:37:24 +08:00
Refa: Chat conversations /convsersation API to RESTFul (#13893)
### What problem does this PR solve? Chat conversations /convsersation API to RESTFul. ### Type of change - [x] Refactoring
This commit is contained in:
@@ -256,7 +256,7 @@ export const AudioButton = ({
|
||||
formData.append('file', audioFile);
|
||||
formData.append('stream', 'false');
|
||||
|
||||
const response = await fetch(api.sequence2txt, {
|
||||
const response = await fetch(api.chatsTranscriptions, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
[Authorization]: getAuthorization(),
|
||||
|
||||
@@ -12,7 +12,13 @@ import { forwardRef, useCallback, useEffect } from 'react';
|
||||
|
||||
const Select = SelectPrimitive.Root;
|
||||
|
||||
const SelectGroup = SelectPrimitive.Group;
|
||||
const SelectGroup = React.forwardRef<
|
||||
React.ElementRef<typeof SelectPrimitive.Group>,
|
||||
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Group>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<SelectPrimitive.Group ref={ref} className={cn(className)} {...props} />
|
||||
));
|
||||
SelectGroup.displayName = SelectPrimitive.Group.displayName;
|
||||
|
||||
const SelectValue = SelectPrimitive.Value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user