forked from BerriAI/litellm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/add-azure-content-filter
- Loading branch information
Showing
200 changed files
with
19,095 additions
and
2,843 deletions.
There are no files selected for viewing
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,51 @@ | ||
{ | ||
"name": "Python 3.11", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/python:3.11-bookworm", | ||
// https://github.com/devcontainers/images/tree/main/src/python | ||
// https://mcr.microsoft.com/en-us/product/devcontainers/python/tags | ||
|
||
// "build": { | ||
// "dockerfile": "Dockerfile", | ||
// "context": ".." | ||
// }, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"GitHub.copilot", | ||
"GitHub.copilot-chat" | ||
] | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [4000], | ||
|
||
"containerEnv": { | ||
"LITELLM_LOG": "DEBUG" | ||
}, | ||
|
||
// Use 'portsAttributes' to set default properties for specific forwarded ports. | ||
// More info: https://containers.dev/implementors/json_reference/#port-attributes | ||
"portsAttributes": { | ||
"4000": { | ||
"label": "LiteLLM Server", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "litellm", | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pipx install poetry && poetry install -E extra_proxy -E proxy" | ||
} |
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
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
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
deploy/azure_resource_manager/azure_marketplace/createUiDefinition.json
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,15 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | ||
"handler": "Microsoft.Azure.CreateUIDef", | ||
"version": "0.1.2-preview", | ||
"parameters": { | ||
"config": { | ||
"isWizard": false, | ||
"basics": { } | ||
}, | ||
"basics": [ ], | ||
"steps": [ ], | ||
"outputs": { }, | ||
"resourceTypes": [ ] | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
deploy/azure_resource_manager/azure_marketplace/mainTemplate.json
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,63 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"imageName": { | ||
"type": "string", | ||
"defaultValue": "ghcr.io/berriai/litellm:main-latest" | ||
}, | ||
"containerName": { | ||
"type": "string", | ||
"defaultValue": "litellm-container" | ||
}, | ||
"dnsLabelName": { | ||
"type": "string", | ||
"defaultValue": "litellm" | ||
}, | ||
"portNumber": { | ||
"type": "int", | ||
"defaultValue": 4000 | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.ContainerInstance/containerGroups", | ||
"apiVersion": "2021-03-01", | ||
"name": "[parameters('containerName')]", | ||
"location": "[resourceGroup().location]", | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "[parameters('containerName')]", | ||
"properties": { | ||
"image": "[parameters('imageName')]", | ||
"resources": { | ||
"requests": { | ||
"cpu": 1, | ||
"memoryInGB": 2 | ||
} | ||
}, | ||
"ports": [ | ||
{ | ||
"port": "[parameters('portNumber')]" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"osType": "Linux", | ||
"restartPolicy": "Always", | ||
"ipAddress": { | ||
"type": "Public", | ||
"ports": [ | ||
{ | ||
"protocol": "tcp", | ||
"port": "[parameters('portNumber')]" | ||
} | ||
], | ||
"dnsNameLabel": "[parameters('dnsLabelName')]" | ||
} | ||
} | ||
} | ||
] | ||
} |
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,42 @@ | ||
param imageName string = 'ghcr.io/berriai/litellm:main-latest' | ||
param containerName string = 'litellm-container' | ||
param dnsLabelName string = 'litellm' | ||
param portNumber int = 4000 | ||
|
||
resource containerGroupName 'Microsoft.ContainerInstance/containerGroups@2021-03-01' = { | ||
name: containerName | ||
location: resourceGroup().location | ||
properties: { | ||
containers: [ | ||
{ | ||
name: containerName | ||
properties: { | ||
image: imageName | ||
resources: { | ||
requests: { | ||
cpu: 1 | ||
memoryInGB: 2 | ||
} | ||
} | ||
ports: [ | ||
{ | ||
port: portNumber | ||
} | ||
] | ||
} | ||
} | ||
] | ||
osType: 'Linux' | ||
restartPolicy: 'Always' | ||
ipAddress: { | ||
type: 'Public' | ||
ports: [ | ||
{ | ||
protocol: 'tcp' | ||
port: portNumber | ||
} | ||
] | ||
dnsNameLabel: dnsLabelName | ||
} | ||
} | ||
} |
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
Oops, something went wrong.