Spaces:
Runtime error
Runtime error
Update app.py
Browse files17 unmodified lines18192021222324136 unmodified lines16116216316416516616717 unmodified linesYOUR_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 linesmessages = history_to_messages(_history, _setting['system'])messages.append({'role': Role.USER, 'content': query})gen = Generation.call(model="pre-qwen-coder-plus-chat",messages=messages,result_format='message',stream=True)17 unmodified lines181920212223136 unmodified lines16016116216316416516617 unmodified linesYOUR_API_TOKEN = os.getenv('YOUR_API_TOKEN')dashscope.api_key = YOUR_API_TOKENHistory = List[Tuple[str, str]]Messages = List[Dict[str, str]]136 unmodified linesmessages = history_to_messages(_history, _setting['system'])messages.append({'role': Role.USER, 'content': query})gen = Generation.call(model="qwen2.5-coder-32b-instruct",messages=messages,result_format='message',stream=True)
app.py+1-2