Updated gateway

This commit is contained in:
2026-03-13 13:35:07 +03:00
parent 64b1f55f98
commit e0e10c5298
6 changed files with 28 additions and 114 deletions
+2 -32
View File
@@ -23,6 +23,8 @@ logging:
cors:
allowed-origins:
- http://localhost:9080
- http://localhost:9081
- http://localhost:9082
jwt:
secret: U7R7yI7oF5wI5Of5qTnS83uWhhRr9mY8ftkbvEtN/fc=
access:
@@ -33,38 +35,6 @@ jwt:
expiration: 86400000
device:
expiration: 86400000
assistant:
base: "You are Kilimo Assistant, an expert in farm and agriculture questions only."
generateJson: "Return a JSON with fields: content (string), violate (bool if outside your expertise)."
generateTitle: "Add a short 'title' field in the JSON."
generateActions: "Add an 'actions' field in the JSON with relevant actions from the list below."
userMemory: "Consider these facts about user and generate any new(max 3) and add to 'userFacts' field in json"
chatMemory: "Consider these facts about this chat and generate any new(max 3) and add to 'chatFacts' field in json"
models:
- name: deepseek-gpt-4
url: https://api.deepseek.com/chat/completions
access:
key: Authorization
value: Bearer sk-52cdbf062bdf4e45aa39734e1bb2f813
- name: gemini-3-flash-preview
url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
access:
key: x-goog-api-key
value: AIzaSyA3DXZUXLIYcMFWaWuZMmtzTU8RMIBg1Yk
actions:
- CREATE_FARM
- START_IRRIGATION
- HARVEST_CROPS
- PEST_CONTROL
- FERTILIZATION
- SOIL_TESTING
- WEATHER_FORECAST
- CROP_SELECTION
- DISEASE_DIAGNOSIS
- YIELD_PREDICTION
- IRRIGATION_SCHEDULING
- MARKET_PRICES
- FARM_EQUIPMENT_MAINTENANCE
s3:
endpoint: https://api.storage.kilimo.farm
region: us-east-1