auto-coder-web 0.1.40__py3-none-any.whl → 0.1.41__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- auto_coder_web/common_router/model_router.py +4 -4
- auto_coder_web/proxy.py +0 -4
- auto_coder_web/version.py +1 -1
- auto_coder_web/web/asset-manifest.json +3 -3
- auto_coder_web/web/index.html +1 -1
- auto_coder_web/web/static/js/{main.8d7d4613.js → main.0fc8391d.js} +3 -3
- auto_coder_web/web/static/js/{main.8d7d4613.js.map → main.0fc8391d.js.map} +1 -1
- {auto_coder_web-0.1.40.dist-info → auto_coder_web-0.1.41.dist-info}/METADATA +1 -1
- {auto_coder_web-0.1.40.dist-info → auto_coder_web-0.1.41.dist-info}/RECORD +13 -14
- auto_coder_web/auto_coder_runner.py +0 -836
- /auto_coder_web/web/static/js/{main.8d7d4613.js.LICENSE.txt → main.0fc8391d.js.LICENSE.txt} +0 -0
- {auto_coder_web-0.1.40.dist-info → auto_coder_web-0.1.41.dist-info}/WHEEL +0 -0
- {auto_coder_web-0.1.40.dist-info → auto_coder_web-0.1.41.dist-info}/entry_points.txt +0 -0
- {auto_coder_web-0.1.40.dist-info → auto_coder_web-0.1.41.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,8 @@ class Model(BaseModel):
|
|
23
23
|
model_name: str
|
24
24
|
model_type: str
|
25
25
|
base_url: str
|
26
|
-
|
26
|
+
api_key: str = ""
|
27
|
+
api_key_path:str = ""
|
27
28
|
is_reasoning: bool = False
|
28
29
|
input_price: float = 0.0
|
29
30
|
output_price: float = 0.0
|
@@ -60,9 +61,8 @@ async def add_model(model: Model):
|
|
60
61
|
existing_models = model_utils.load_models()
|
61
62
|
if any(m["name"] == model.name for m in existing_models):
|
62
63
|
raise HTTPException(status_code=400, detail="Model with this name already exists")
|
63
|
-
|
64
|
-
|
65
|
-
model_utils.save_models(existing_models)
|
64
|
+
|
65
|
+
model_utils.add_and_activate_models([model.model_dump()])
|
66
66
|
return model
|
67
67
|
except Exception as e:
|
68
68
|
raise HTTPException(status_code=500, detail=str(e))
|
auto_coder_web/proxy.py
CHANGED
@@ -16,10 +16,6 @@ import argparse
|
|
16
16
|
import aiofiles
|
17
17
|
import pkg_resources
|
18
18
|
import sys
|
19
|
-
from auto_coder_web.auto_coder_runner import AutoCoderRunner
|
20
|
-
from .types import (
|
21
|
-
FileContentResponse,
|
22
|
-
)
|
23
19
|
from .terminal import terminal_manager
|
24
20
|
from autocoder.common import AutoCoderArgs
|
25
21
|
from auto_coder_web.auto_coder_runner_wrapper import AutoCoderRunnerWrapper
|
auto_coder_web/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.41"
|
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"files": {
|
3
3
|
"main.css": "/static/css/main.d58ae48e.css",
|
4
|
-
"main.js": "/static/js/main.
|
4
|
+
"main.js": "/static/js/main.0fc8391d.js",
|
5
5
|
"static/js/453.d855a71b.chunk.js": "/static/js/453.d855a71b.chunk.js",
|
6
6
|
"index.html": "/index.html",
|
7
7
|
"main.d58ae48e.css.map": "/static/css/main.d58ae48e.css.map",
|
8
|
-
"main.
|
8
|
+
"main.0fc8391d.js.map": "/static/js/main.0fc8391d.js.map",
|
9
9
|
"453.d855a71b.chunk.js.map": "/static/js/453.d855a71b.chunk.js.map"
|
10
10
|
},
|
11
11
|
"entrypoints": [
|
12
12
|
"static/css/main.d58ae48e.css",
|
13
|
-
"static/js/main.
|
13
|
+
"static/js/main.0fc8391d.js"
|
14
14
|
]
|
15
15
|
}
|
auto_coder_web/web/index.html
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.0fc8391d.js"></script><link href="/static/css/main.d58ae48e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|