angular-moon

Results 4 comments of angular-moon

@SoyMeng 没太看懂, 你写的sort, 是不是写错了, tokens.length 不是都是2吗, 你是想比较url的长度吗? 这个PR是想解决这种问题; /api/foo/:id /api/foo/x 需要优先匹配 `/api/foo/x`, 所以不一定是length长的优先

@SoyMeng thanks, 按照你的实现修改了

I reproduced this problem when using ollama llama-3. request: ```json {"response_mode":"streaming","conversation_id":"2f07aee2-7c2b-4875-9e17-0faea0ecf0c9","query":"在 react hooks 中创建SSE的长连接,如果在不重新执行 effect 销毁连接和重新创建的前提下更新事件响应的执行方法","inputs":{},"model_config":{"pre_prompt":"作为一位程序员,你可能会遇到各种各样的编程问题。你的任务是利用大语言模型来解决编程相关的问题。你需要确保你的解决方案是清晰、准确、易于理解的,并且遵循最佳的编程实践。在提出问题时,请尽可能提供详细的上下文和相关信息,以便模型能够更好地理解你的问题。你可能会被要求提供代码示例、错误信息、需求等。你将不会被要求执行需要访问私有或敏感信息的任务。你将不会被要求执行可能违反伦理或法律规定的任务。请明确你的问题,以便我们能够为你提供最佳的解决方案。","prompt_type":"simple","chat_prompt_config":{},"completion_prompt_config":{},"user_input_form":[],"dataset_query_variable":"","opening_statement":"您好,我是您的人工智能编程助手。我可以在您遇到编程问题时提供帮助,并为您提供清晰、准确、易于理解的解决方案。","more_like_this":{"enabled":false},"suggested_questions":[],"suggested_questions_after_answer":{"enabled":false},"text_to_speech":{"enabled":false},"speech_to_text":{"enabled":false},"retriever_resource":{"enabled":false},"sensitive_word_avoidance":{"enabled":false,"type":"","configs":[]},"agent_mode":{"enabled":false,"max_iteration":5,"strategy":"react","tools":[]},"dataset_configs":{"retrieval_model":"single","datasets":{"datasets":[]}},"file_upload":{"image":{"enabled":false,"number_limits":3,"detail":"high","transfer_methods":["remote_url","local_file"]}},"annotation_reply":{"enabled":false},"supportAnnotation":true,"appId":"75e90efb-7fc5-4b33-8d83-3df643c21d83","supportCitationHitInfo":true,"model":{"provider":"ollama","name":"llama3","mode":"chat","completion_params":{"temperature":0.1,"top_p":0.9,"num_predict":512,"num_ctx":2048}}}} ``` response: [response.txt](https://github.com/langgenius/dify/files/15051223/response.txt)

进度如何?