Spaces:
Runtime error
Runtime error
Update app.py
Browse files17 unmodified lines18192021212223136 unmodified lines16016116216416316416516617 unmodified lines
YOUR_API_TOKEN = os.getenv('YOUR_API_TOKEN')dashscope.api_key = YOUR_API_TOKENdashscope.base_http_api_url = 'https://poc-dashscope.aliyuncs.com/api/v1'
History = List[Tuple[str, str]]Messages = List[Dict[str, str]]136 unmodified lines messages = history_to_messages(_history, _setting['system']) messages.append({'role': Role.USER, 'content': query})
gen = Generation.call(model="pre-qwen-coder-plus-chat", gen = Generation.call(model="qwen2.5-coder-32b-instruct", messages=messages, result_format='message', stream=True)app.py+1-2