mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Fix go compilation (#14900)
### What problem does this PR solve? As title ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -218,7 +218,6 @@ func (l *LocalAIModel) ChatWithMessages(modelName string, messages []Message, ap
|
||||
// addLocalAIReasoningRequestParams.
|
||||
addLocalAIReasoningRequestParams(reqBody, chatModelConfig)
|
||||
}
|
||||
|
||||
jsonData, err := json.Marshal(reqBody)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to marshal request: %w", err)
|
||||
@@ -818,8 +817,7 @@ func (l *LocalAIModel) AudioSpeechWithSender(modelName *string, audioContent *st
|
||||
return fmt.Errorf("%s, no such method", l.Name())
|
||||
}
|
||||
|
||||
// OCRFile: LocalAI has no OCR pipeline in its OpenAI-compatible surface;
|
||||
// document parsing belongs to a different interface entirely.
|
||||
func (l *LocalAIModel) OCRFile(modelName *string, fileContent *string, apiConfig *APIConfig, ocrConfig *OCRConfig) (*OCRResponse, error) {
|
||||
return nil, fmt.Errorf("%s, no such method", l.Name())
|
||||
// OCRFile OCR file
|
||||
func (d *LocalAIModel) OCRFile(modelName *string, content []byte, url *string, apiConfig *APIConfig, ocrConfig *OCRConfig) (*OCRResponse, error) {
|
||||
return nil, fmt.Errorf("%s, no such method", d.Name())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user