-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Merge pull request #20 from abolfazl8131/refactor
refactor
- Loading branch information
Showing
11 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .helm_models import * | ||
from .terraform_models import * | ||
from .utils import * |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pydantic import BaseModel | ||
from typing import List, Optional | ||
|
||
class Pod(BaseModel): | ||
name:str | ||
image:str | ||
target_port:int | ||
|
||
class HelmTemplateGeneration(BaseModel): | ||
api_version:int = 1 | ||
pods:List[Pod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from pydantic import BaseModel | ||
from typing import List, Optional | ||
|
||
from .utils import BasicInput | ||
|
||
|
||
class IaCBasicInput(BasicInput): | ||
input:str | ||
service:Optional[str] = 'terraform' | ||
|
||
class IaCBugfixInput(BasicInput): | ||
bug_description:str | ||
version:str = 'latest' | ||
service:Optional[str] = 'terraform' | ||
|
||
class IaCInstallationInput(BaseModel): | ||
os:str = "ubuntu" | ||
service:Optional[str] = 'terraform' | ||
|
||
class IaCTemplateGeneration(BaseModel): | ||
CI_integration:bool = True | ||
base_config:str = 'ec2' | ||
service:str = 'terraform' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from pydantic import BaseModel | ||
from typing import List, Optional | ||
|
||
class Output(BaseModel): | ||
output:str | ||
|
||
class BasicInput(BaseModel): | ||
|
||
max_tokens:int = 500 | ||
min_tokens:int = 100 | ||
service:str |