File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
tests/sdk_tests/client_tests Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 9
9
vllm_qwen2d5_72b_engine064 ,
10
10
vllm_qwq_engine073 ,
11
11
vllm_qwq_engine082 ,
12
- vllm_qwen3_engin084
12
+ vllm_qwen3_engin084 ,
13
+ vllm_qwen3_engin091
13
14
)
14
15
from ..services import (
15
16
sagemaker_service ,
504
505
Model .register (
505
506
dict (
506
507
model_id = "Qwen3-8B" ,
507
- supported_engines = [vllm_qwen3_engin084 ],
508
+ supported_engines = [vllm_qwen3_engin091 ],
508
509
supported_instances = [
509
510
g5d2xlarge_instance ,
510
511
g5d4xlarge_instance ,
Original file line number Diff line number Diff line change
1
+ from strands import Agent
2
+ from strands .models .openai import OpenAIModel
3
+ from strands_tools import calculator , current_time
4
+ import logging
5
+
6
+ model = OpenAIModel (
7
+ client_args = {
8
+ "api_key" : "xxx" ,
9
+ "base_url" : "http://localhost:8080/v1/" ,
10
+ },
11
+ # **model_config
12
+ model_id = "Qwen3-8B" ,
13
+ params = {
14
+ "extra_body" : {"chat_template_kwargs" : {"enable_thinking" : False }}
15
+ }
16
+ )
17
+
18
+
19
+ agent = Agent (model = model , tools = [calculator , current_time ])
20
+ response = agent ("现在几点" )
21
+ print (response )
You can’t perform that action at this time.
0 commit comments