mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
Use the custom oapi-codegen for testing: ditch depreciated, add yaml
This commit is contained in:
parent
4d48b362f6
commit
2867bca1f2
7 changed files with 232 additions and 287 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
)
|
||||
|
||||
type LocalAIServer struct {
|
||||
configMerger *ConfigMerger
|
||||
}
|
||||
|
||||
var _ ServerInterface = (*LocalAIServer)(nil)
|
||||
|
@ -50,6 +51,7 @@ func (*LocalAIServer) CreateChatCompletion(w http.ResponseWriter, r *http.Reques
|
|||
sendError(w, http.StatusBadRequest, "Invalid CreateChatCompletionRequest")
|
||||
return
|
||||
}
|
||||
configMerger.GetConfig(chatRequest.Model)
|
||||
}
|
||||
|
||||
// CreateClassification implements ServerInterface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue