FEATURE: Add a markdown table AI helper (#25)
This commit is contained in:
@@ -6,7 +6,8 @@ module DiscourseAi
|
||||
TRANSLATE = "translate"
|
||||
GENERATE_TITLES = "generate_titles"
|
||||
PROOFREAD = "proofread"
|
||||
VALID_TYPES = [TRANSLATE, GENERATE_TITLES, PROOFREAD]
|
||||
MARKDOWN_TABLE = "markdown_table"
|
||||
VALID_TYPES = [TRANSLATE, GENERATE_TITLES, PROOFREAD, MARKDOWN_TABLE]
|
||||
|
||||
def available_prompts
|
||||
CompletionPrompt
|
||||
|
||||
@@ -9,7 +9,7 @@ module ::DiscourseAi
|
||||
"Content-Type" => "application/json",
|
||||
}
|
||||
|
||||
connection_opts = { request: { write_timeout: 10, read_timeout: 10, open_timeout: 10 } }
|
||||
connection_opts = { request: { write_timeout: 60, read_timeout: 60, open_timeout: 60 } }
|
||||
|
||||
response =
|
||||
Faraday.new(nil, connection_opts).post(
|
||||
|
||||
Reference in New Issue
Block a user