Spaces:
Sleeping
Sleeping
zasharepw77
commited on
Commit
·
f8d7e03
1
Parent(s):
7dd9ee8
вроде заработал 4
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, LiteLLMModel
|
| 2 |
import os
|
| 3 |
-
import litellm
|
| 4 |
-
litellm._turn_on_debug() # Enable debugging for litellm
|
| 5 |
|
| 6 |
'''
|
| 7 |
import os
|
|
@@ -32,8 +32,8 @@ os.environ['SAMBANOVA_API_KEY'] = os.getenv('sambanova_token')
|
|
| 32 |
# Create the model with explicit provider specification
|
| 33 |
model = LiteLLMModel(
|
| 34 |
model_id="sambanova/Meta-Llama-3.3-70B-Instruct", # Explicitly specify the sambanova provider
|
| 35 |
-
max_tokens=
|
| 36 |
-
|
| 37 |
api_base="https://api.sambanova.ai/v1", # Specify the base URL for Sambanova, as in your working requests example
|
| 38 |
)
|
| 39 |
|
|
|
|
| 1 |
from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, LiteLLMModel
|
| 2 |
import os
|
| 3 |
+
#import litellm
|
| 4 |
+
#litellm._turn_on_debug() # Enable debugging for litellm
|
| 5 |
|
| 6 |
'''
|
| 7 |
import os
|
|
|
|
| 32 |
# Create the model with explicit provider specification
|
| 33 |
model = LiteLLMModel(
|
| 34 |
model_id="sambanova/Meta-Llama-3.3-70B-Instruct", # Explicitly specify the sambanova provider
|
| 35 |
+
max_tokens=2096,
|
| 36 |
+
temperature=0.1,
|
| 37 |
api_base="https://api.sambanova.ai/v1", # Specify the base URL for Sambanova, as in your working requests example
|
| 38 |
)
|
| 39 |
|