Use the custom oapi-codegen for testing: ditch depreciated, add yaml

This commit is contained in:
Dave Lee 2023-05-24 19:32:48 -04:00
parent 4d48b362f6
commit 2867bca1f2
No known key found for this signature in database
7 changed files with 232 additions and 287 deletions

View file

@ -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