* Create publish-docker-images.yaml

* Add copilot_proxy publishing

* Add model_converter publishing

* Use dockerhub version

* Do not login for PRs

* Overwrite some of labels value

* Move ignore files to the root of `context`

* Add comments & fix some issue

* Fix typos

* Remove the target of the master branch

* Delete .dockerignore

* Delete .dockerignore

* Add Flake8

* Add Flake8 and format code accordingly

* Iterate on the PR template, fix the token for the contributor action

* Remove converter image build

* Update Dockerfile of proxy

* Comment out proxy image in compose

Co-authored-by: Fred de Gier <freddegier@me.com>

* Fix build action

---------

Co-authored-by: Rowe Wilson Frederisk Holme <frederisk@outlook.com>
This commit is contained in:
Fred de Gier 2023-02-15 09:17:07 +01:00 committed by GitHub
commit 283668448d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 198 additions and 67 deletions

View file

@ -2,9 +2,11 @@ from typing import Optional, Union
from pydantic import BaseModel, constr
ModelType = constr(regex="^(fastertransformer|py-model)$")
class OpenAIinput(BaseModel):
model: constr(regex="^(fastertransformer|py-model)$") = "fastertransformer"
model: ModelType = "fastertransformer"
prompt: Optional[str]
suffix: Optional[str]
max_tokens: Optional[int] = 16
@ -20,4 +22,3 @@ class OpenAIinput(BaseModel):
best_of: Optional[int] = 1
logit_bias: Optional[dict]
user: Optional[str]