stash progress for the night. loading GPTJ fails, hacked in PredictTEMP as kludge

This commit is contained in:
Dave Lee 2023-06-08 03:11:52 -04:00
parent 8fc4b6cded
commit 0b910e0595
14 changed files with 518 additions and 193 deletions

View file

@ -78,9 +78,9 @@ openai-openapi/transformed: openai-openapi/spec
apiv2/localai.gen.go: prepare-sources
echo "go mod download done, running YTT"
cp ./openai-openapi/transformed/localai.yaml ./openai-openapi/transformed/localai.orig.yaml
$(GOCMD) run github.com/vmware-tanzu/carvel-ytt/cmd/ytt --output-files ./openai-openapi/transformed -f ./openai-openapi/transformed/localai.yaml -f ./openai-openapi/localai_model_patches.yaml
# -f ./openai-openapi/remove_depreciated_openapi.yaml
# cp ./openai-openapi/transformed/localai.yaml ./openai-openapi/transformed/localai.orig.yaml
$(GOCMD) run github.com/vmware-tanzu/carvel-ytt/cmd/ytt --output-files ./openai-openapi/transformed -f ./openai-openapi/transformed/localai.yaml -f ./openai-openapi/localai_model_patches.yaml
cp ./openai-openapi/transformed/localai.yaml ./openai-openapi/transformed/localai.mid.yaml
echo "YTT Done, generating code..."
$(GOCMD) run github.com/deepmap/oapi-codegen/cmd/oapi-codegen --config=./openai-openapi/config.yaml ./openai-openapi/transformed/localai.yaml