issabella (@issa) 在 一个amazonaws上的部署的R1测试endpoint,no auth 中发帖
API_URL = "https://zyqnod20re.execute-api.us-east-1.amazonaws.com/dev/test_bedrock_v4_deepseek"
def query_deepseek(prompt: str, max_gen_len: int, temperature: float, top_p: float) -> str:
"""
Sends a request to the DeepSeek-R1 model via AWS Bedrock API and returns the response.
Args:
prompt (str): The user input query.
max_gen_len (int): The maximum length of the ...