Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .pytest_cache/.gitignore +2 -0
- .pytest_cache/CACHEDIR.TAG +4 -0
- .pytest_cache/README.md +8 -0
- .pytest_cache/v/cache/lastfailed +6 -0
- .pytest_cache/v/cache/nodeids +6 -0
- __pycache__/test_gemini_tools.cpython-312-pytest-9.0.2.pyc +0 -0
- src/opencode_api/core/config.py +2 -2
- src/opencode_api/routes/provider.py +1 -0
.pytest_cache/.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Created by pytest automatically.
|
| 2 |
+
*
|
.pytest_cache/CACHEDIR.TAG
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|
| 2 |
+
# This file is a cache directory tag created by pytest.
|
| 3 |
+
# For information about cache directory tags, see:
|
| 4 |
+
# https://bford.info/cachedir/spec.html
|
.pytest_cache/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# pytest cache directory #
|
| 2 |
+
|
| 3 |
+
This directory contains data from the pytest's cache plugin,
|
| 4 |
+
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
|
| 5 |
+
|
| 6 |
+
**Do not** commit this to version control.
|
| 7 |
+
|
| 8 |
+
See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
|
.pytest_cache/v/cache/lastfailed
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"test_gemini_tools.py::test_thinking_only": true,
|
| 3 |
+
"test_gemini_tools.py::test_tool_calling": true,
|
| 4 |
+
"test_gemini_tools.py::test_thinking_with_tools": true,
|
| 5 |
+
"test_gemini_tools.py::test_flash_model": true
|
| 6 |
+
}
|
.pytest_cache/v/cache/nodeids
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"test_gemini_tools.py::test_flash_model",
|
| 3 |
+
"test_gemini_tools.py::test_thinking_only",
|
| 4 |
+
"test_gemini_tools.py::test_thinking_with_tools",
|
| 5 |
+
"test_gemini_tools.py::test_tool_calling"
|
| 6 |
+
]
|
__pycache__/test_gemini_tools.cpython-312-pytest-9.0.2.pyc
ADDED
|
Binary file (15 kB). View file
|
|
|
src/opencode_api/core/config.py
CHANGED
|
@@ -14,8 +14,8 @@ class ProviderConfig(BaseModel):
|
|
| 14 |
|
| 15 |
|
| 16 |
class ModelConfig(BaseModel):
|
| 17 |
-
provider_id: str = "
|
| 18 |
-
model_id: str = "
|
| 19 |
|
| 20 |
|
| 21 |
class Settings(BaseSettings):
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
class ModelConfig(BaseModel):
|
| 17 |
+
provider_id: str = "blablador"
|
| 18 |
+
model_id: str = "alias-large"
|
| 19 |
|
| 20 |
|
| 21 |
class Settings(BaseSettings):
|
src/opencode_api/routes/provider.py
CHANGED
|
@@ -18,6 +18,7 @@ PROVIDER_API_KEYS = {
|
|
| 18 |
"anthropic": "ANTHROPIC_API_KEY",
|
| 19 |
"openai": "OPENAI_API_KEY",
|
| 20 |
"gemini": ["GOOGLE_API_KEY", "GEMINI_API_KEY"],
|
|
|
|
| 21 |
"litellm": None, # LiteLLM은 개별 모델별로 체크
|
| 22 |
}
|
| 23 |
|
|
|
|
| 18 |
"anthropic": "ANTHROPIC_API_KEY",
|
| 19 |
"openai": "OPENAI_API_KEY",
|
| 20 |
"gemini": ["GOOGLE_API_KEY", "GEMINI_API_KEY"],
|
| 21 |
+
"blablador": "BLABLADOR_API_KEY",
|
| 22 |
"litellm": None, # LiteLLM은 개별 모델별로 체크
|
| 23 |
}
|
| 24 |
|