Spaces:
Paused
Paused
Finalizing OpenResearcher with Helmholtz Blablador and Victor Search
Browse files
app.py
CHANGED
|
@@ -821,12 +821,6 @@ async def generate_response(prompt: str, max_new_tokens: int = MAX_NEW_TOKENS) -
|
|
| 821 |
selected_model = "alias-large" if prompt_tokens > 4000 else "alias-fast"
|
| 822 |
|
| 823 |
url = f"{REMOTE_API_BASE}/completions"
|
| 824 |
-
print(f"Generating response with model: {selected_model}")
|
| 825 |
-
print(f"URL: {url}")
|
| 826 |
-
print(f"API Key present: {bool(BLABLADOR_API_KEY)}")
|
| 827 |
-
if BLABLADOR_API_KEY:
|
| 828 |
-
print(f"API Key length: {len(BLABLADOR_API_KEY)}")
|
| 829 |
-
|
| 830 |
headers = {
|
| 831 |
"Content-Type": "application/json"
|
| 832 |
}
|
|
|
|
| 821 |
selected_model = "alias-large" if prompt_tokens > 4000 else "alias-fast"
|
| 822 |
|
| 823 |
url = f"{REMOTE_API_BASE}/completions"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 824 |
headers = {
|
| 825 |
"Content-Type": "application/json"
|
| 826 |
}
|