ciyidogan commited on
Commit
f1f18bc
·
verified ·
1 Parent(s): 6a71c2b

Update service_config.json

Browse files
Files changed (1) hide show
  1. 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. I can help you with ticketing, reservations, flight changes, cancellations, and general support. If you ask about something else, I will kindly guide you back to these topics.",
6
- "spark_endpoint": "https://ucsturkey-spark.hf.space"
7
- },
8
- "projects": [
9
- {
10
- "project_name": "project1",
11
- "versions":
12
- [
13
- {
14
- "project_version": 1
15
- "llm": {
16
- "repo_id": "ytu-ce-cosmos/Turkish-Llama-8b-DPO-v0.1",
17
- "generation_config": {
18
- "max_new_tokens": 128,
19
- "temperature": 0.3,
20
- "top_p": 0.7,
21
- "repetition_penalty": 1.1
22
- },
23
- "use_fine_tune": true,
24
- "fine_tune_zip": ""
25
- },
26
- "intents": [
27
- {
28
- "name": "currency-rate-intent",
29
- "examples": ["What is the dollar rate?", "How much is the euro?", "How many TL is 1 dollar?", "Dollar to TL exchange", "Today's euro value"],
30
- "parameters": [
31
- {
32
- "name": "currency",
33
- "type": "string",
34
- "regex": "^(USD|EUR|TRY)$",
35
- "validation_message": "Please provide a valid currency: USD, EUR, or TRY.",
36
- "extraction_prompt": "Identify the currency mentioned in this sentence. Expected values: USD, EUR, or TRY."
37
- }
38
- ],
39
- "action": "currency_api",
40
- "fallback_timeout_message": "Sorry, the currency service is currently unavailable. Please try again later.",
41
- "fallback_error_message": "An error occurred; the currency information could not be retrieved.",
42
- "humanization_prompt": "Summarize the currency exchange response in a natural and user-friendly way."
43
- }
44
- ]
45
- }
46
- ]
47
- }
48
- ],
49
- "apis": {
50
- "currency_api": {
51
- "url": "https://c2b5-176-88-34-20.ngrok-free.app/doviz",
52
- "method": "POST",
53
- "headers": [{ "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }],
54
- "body": { "currency": "{variables.currency}" },
55
- "timeout": 5,
56
- "retry_count": 1,
57
- "auth": {
58
- "auth_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/auth",
59
- "auth_body": { "username": "user", "password": "pass" },
60
- "auth_token_path": "token",
61
- "auth_refresh_endpoint": "https://c2b5-176-88-34-20.ngrok-free.app/refresh",
62
- "refresh_body": { "refresh_token": "{auth_tokens.currency_api.token}" }
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
+ }