env set up for remote
This commit is contained in:
@@ -36,7 +36,9 @@ class OllamaGenerator:
|
||||
])
|
||||
|
||||
# the deepseek model returns <think> this removes those tabs from the output
|
||||
return re.sub(r"<think|.\n\r+?|([^;]*)\/think>",'',self.response['message']['content'])
|
||||
# return re.sub(r"<think|.\n\r+?|([^;]*)\/think>",'',self.response['message']['content'])
|
||||
return self.response['message']['content']
|
||||
|
||||
|
||||
except Exception as e:
|
||||
raise Exception(f"Failed to generate markdown: {e}")
|
||||
|
||||
Reference in New Issue
Block a user