-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.yml
More file actions
43 lines (40 loc) · 2.24 KB
/
config.yml
File metadata and controls
43 lines (40 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "sas2rassistant"
title: "SAS to R Code Translator"
url: "sas2rassistant"
access: "all" # acl (access only for specific users), logged_in (any registered user, must log in first), all (any user no login required)
description: "SAS to R assistant using OpenAI"
favicon: "./images/favicon.png"
logo: "logo.png"
# Add appropriate email and host details here to have the feedback form email you when someone puts in feedback, otherwise the form won't send users' feedback anywhere
feedback_from_email: "INSERT YOUR EMAIL HERE"
feedback_to_email: "INSERT YOUR EMAIL HERE"
feedback_host_name: "INSERT YOUR HOST HERE"
from_language: "SAS"
from_language_2: "SPSS"
to_language: "R"
open_ai_key: "INSERT YOUR KEY HERE" # this is now to be set as an environment variable in Posit Connect (OPEN_AI_KEY)
open_ai_model: "gpt-5.2"
open_ai_max_tokens: 40000
max_workers: 4 # full value should be stored as an environment variable in Posit Connect (MAX_WORKERS)
# This is the default 'number of iterations' setting for the translator
max_self_corrector_iterations: 5
max_manual_iterator_iterations: 0 # this should always be 0 as auto-checking manual iterations isn't implemented
# define regex patterns here
# the provided patterns match the following (in order)
# - regexPatternFilepath
# - regexPatternIPaddress
# - regexPatternUsernames
# - regexPatternPasswords
regex: [
"\\/(https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z]{2,}(\\.[a-zA-Z]{2,})(\\.[a-zA-Z]{2,})?\\/[a-zA-Z0-9]{2,}|((https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z]{2,}(\\.[a-zA-Z]{2,})(\\.[a-zA-Z]{2,})?)|(https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z0-9]{2,}\\.[a-zA-Z0-9]{2,}\\.[a-zA-Z0-9]{2,}(\\.[a-zA-Z0-9]{2,})?"
, "(?:[0-9]{1,3}\\.){3}[0-9]{1,3}"
, "([a-zA-Z]{1,}):\\/\\/([a-zA-Z]{1,})|([a-zA-Z]{1,}):\\/([a-zA-Z]{1,})|([a-zA-Z]{1,}):\\/\\/|([a-zA-Z]{1,}):\\/"
, "\\b(username)\\b|\\b(user)\\b|\\b(uid)\\b"
, "\\b(password)\\b|\\b(pword)\\b|\\b(pwrd)\\b|\\b(passw)\\b|\\b(pw)\\b|\\b(mypass)\\b|\\b(pwd)\\b\\/g"
]
# the following params are for creation of the docker image and running the app with in a docker container
docker:
port: 3838
host: "0.0.0.0"
path: "/home/sas-to-r-translator"
image_name: "sas-to-r-translator"