Spaces:
Running
Running
Update service_config.json
Browse files- service_config.json +91 -66
service_config.json
CHANGED
@@ -1,66 +1,91 @@
|
|
1 |
-
{
|
2 |
-
"config": {
|
3 |
-
"work_mode": "hfcloud",
|
4 |
-
"cloud_token": "",
|
5 |
-
"system_prompt": "Welcome to Cronos Jet. I am Ceren, your virtual assistant.
|
6 |
-
"spark_endpoint": "https://ucsturkey-spark.hf.space"
|
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 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"config": {
|
3 |
+
"work_mode": "hfcloud",
|
4 |
+
"cloud_token": "",
|
5 |
+
"system_prompt": "Welcome to Cronos Jet. I am Ceren, your virtual assistant.",
|
6 |
+
"spark_endpoint": "https://ucsturkey-spark.hf.space",
|
7 |
+
"last_version_number": 1,
|
8 |
+
"users": [
|
9 |
+
{
|
10 |
+
"username": "admin",
|
11 |
+
"password_hash": "$2b$12$M6zW4yD/s1wvzD/TBfXefudXBg3iS/GK9XO1v0U3vI2MD5/45nPQ2",
|
12 |
+
"salt": ""
|
13 |
+
}
|
14 |
+
]
|
15 |
+
},
|
16 |
+
"projects": {
|
17 |
+
"project1": {
|
18 |
+
"enabled": true,
|
19 |
+
"versions": [
|
20 |
+
{
|
21 |
+
"version_number": 1,
|
22 |
+
"published": true,
|
23 |
+
"llm": {
|
24 |
+
"repo_id": "ytu-ce-cosmos/Turkish-Llama-8b-DPO-v0.1",
|
25 |
+
"generation_config": {
|
26 |
+
"max_new_tokens": 128,
|
27 |
+
"temperature": 0.3,
|
28 |
+
"top_p": 0.7,
|
29 |
+
"repetition_penalty": 1.1
|
30 |
+
},
|
31 |
+
"use_fine_tune": false,
|
32 |
+
"fine_tune_zip": ""
|
33 |
+
},
|
34 |
+
"intents": [
|
35 |
+
{
|
36 |
+
"name": "currency-rate-intent",
|
37 |
+
"examples": ["What is the dollar rate?", "How much is the euro?"],
|
38 |
+
"parameters": [{ "name": "currency", "type": "string", "regex": "^(USD|EUR|TRY)$", "validation_message": "Please provide a valid currency." }],
|
39 |
+
"action": "currency_api",
|
40 |
+
"fallback_timeout_message": "Currency service timeout.",
|
41 |
+
"fallback_error_message": "Currency service error.",
|
42 |
+
"humanization_prompt": "Summarize currency response."
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"name": "weather-forecast-intent",
|
46 |
+
"examples": ["What is the weather in Istanbul?", "Show me the weather forecast."],
|
47 |
+
"parameters": [{ "name": "location", "type": "string", "validation_message": "Please provide a valid location." }],
|
48 |
+
"action": "weather_api",
|
49 |
+
"fallback_timeout_message": "Weather service timeout.",
|
50 |
+
"fallback_error_message": "Weather service error.",
|
51 |
+
"humanization_prompt": "Summarize weather response."
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"name": "traffic-status-intent",
|
55 |
+
"examples": ["What is the traffic like to the airport?", "Show me Istanbul traffic."],
|
56 |
+
"parameters": [{ "name": "location", "type": "string", "validation_message": "Please provide a valid location." }],
|
57 |
+
"action": "traffic_api",
|
58 |
+
"fallback_timeout_message": "Traffic service timeout.",
|
59 |
+
"fallback_error_message": "Traffic service error.",
|
60 |
+
"humanization_prompt": "Summarize traffic response."
|
61 |
+
}
|
62 |
+
]
|
63 |
+
}
|
64 |
+
]
|
65 |
+
}
|
66 |
+
},
|
67 |
+
"apis": {
|
68 |
+
"currency_api": {
|
69 |
+
"url": "https://mock.api/currency",
|
70 |
+
"method": "POST",
|
71 |
+
"headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }],
|
72 |
+
"body": { "currency": "{variables.currency}" },
|
73 |
+
"timeout": 5,
|
74 |
+
"retry_count": 1
|
75 |
+
},
|
76 |
+
"weather_api": {
|
77 |
+
"url": "https://mock.api/weather",
|
78 |
+
"method": "POST",
|
79 |
+
"body": { "location": "{variables.location}" },
|
80 |
+
"timeout": 5,
|
81 |
+
"retry_count": 1
|
82 |
+
},
|
83 |
+
"traffic_api": {
|
84 |
+
"url": "https://mock.api/traffic",
|
85 |
+
"method": "POST",
|
86 |
+
"body": { "from_location": "{variables.from_location}", "to_location": "{variables.to_location}" },
|
87 |
+
"timeout": 5,
|
88 |
+
"retry_count": 1
|
89 |
+
}
|
90 |
+
}
|
91 |
+
}
|