Skip to content

Commit

Permalink
Caching config in GateKeeperIntegration API + removing startup.sh files.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebunting committed Jan 15, 2024
1 parent 5a892c7 commit a067667
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/python/AgentHubAPI/AgentHubAPI.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
<Content Include=".gitignore" />
<Content Include=".pylintrc" />
<Content Include="requirements.txt" />
<Content Include="startup.sh" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PythonSDK\PythonSDK.pyproj">
Expand Down
1 change: 0 additions & 1 deletion src/python/AgentHubAPI/startup.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/python/DataSourceHubAPI/DataSourceHubAPI.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<Content Include=".gitignore" />
<Content Include=".pylintrc" />
<Content Include="requirements.txt" />
<Content Include="startup.sh" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PythonSDK\PythonSDK.pyproj">
Expand Down
1 change: 0 additions & 1 deletion src/python/DataSourceHubAPI/startup.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ProjectGuid>f74cbb5a-97b9-4f68-8077-8bab49c841dc</ProjectGuid>
<ProjectHome>
</ProjectHome>
<StartupFile>app/main.py</StartupFile>
<StartupFile>run.py</StartupFile>
<SearchPath>..\IntegrationSDK</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
Expand All @@ -31,6 +31,7 @@
<Compile Include="app\routers\status.py" />
<Compile Include="app\routers\__init__.py" />
<Compile Include="app\__init__.py" />
<Compile Include="run.py" />
</ItemGroup>
<ItemGroup>
<Folder Include="app\" />
Expand All @@ -40,7 +41,6 @@
<Content Include=".gitignore" />
<Content Include=".pylintrc" />
<Content Include="requirements.txt" />
<Content Include="startup.sh" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\IntegrationSDK\IntegrationSDK.pyproj">
Expand Down
5 changes: 0 additions & 5 deletions src/python/GatekeeperIntegrationAPI/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Main entry-point for the FoundationaLLM DataSourceHubAPI.
Runs web server exposing the API.
"""
import uvicorn
from fastapi import FastAPI
from app.dependencies import get_config
from app.routers import analyze, status
Expand Down Expand Up @@ -42,7 +41,3 @@ async def root():
Returns a JSON object containing a message and value.
"""
return { 'message': 'FoundationaLLM GatekeeperIntegrationAPI' }

if __name__ == '__main__':
uvicorn.run('main:app', host='0.0.0.0', port=8042, reload=True,
forwarded_allow_ips='*', proxy_headers=True)
11 changes: 11 additions & 0 deletions src/python/GatekeeperIntegrationAPI/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import uvicorn

if __name__ == '__main__':
uvicorn.run(
'app.main:app',
host='0.0.0.0',
port=8042,
reload=True,
forwarded_allow_ips='*',
proxy_headers=True
)
1 change: 0 additions & 1 deletion src/python/GatekeeperIntegrationAPI/startup.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/python/LangChainAPI/LangChainAPI.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<Content Include=".gitignore" />
<Content Include=".pylintrc" />
<Content Include="requirements.txt" />
<Content Include="startup.sh" />
</ItemGroup>
<ItemGroup>
<Compile Include="app\dependencies.py" />
Expand Down
1 change: 0 additions & 1 deletion src/python/LangChainAPI/startup.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/python/PromptHubAPI/PromptHubAPI.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<Content Include=".gitignore" />
<Content Include=".pylintrc" />
<Content Include="requirements.txt" />
<Content Include="startup.sh" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PythonSDK\PythonSDK.pyproj">
Expand Down
1 change: 0 additions & 1 deletion src/python/PromptHubAPI/startup.sh

This file was deleted.

0 comments on commit a067667

Please sign in to comment.