Initial Commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
server:
|
||||
port: 9080
|
||||
spring:
|
||||
application:
|
||||
name: farm-kilimo-ms-core
|
||||
datasource:
|
||||
url: jdbc:postgresql://localhost:5432/kilimo
|
||||
username: root
|
||||
password: password
|
||||
driver-class-name: org.postgresql.Driver
|
||||
jpa:
|
||||
show-sql: false
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
||||
logging:
|
||||
pattern:
|
||||
console: "%d{HH:mm:ss.SSS} [%X{requestId}] %-5level %logger{36} - %msg%n"
|
||||
cors:
|
||||
allowed-origins:
|
||||
- http://localhost:9080
|
||||
jwt:
|
||||
secret: U7R7yI7oF5wI5Of5qTnS83uWhhRr9mY8ftkbvEtN/fc=
|
||||
access:
|
||||
expiration: 900000
|
||||
refresh:
|
||||
expiration: 604800000
|
||||
verification:
|
||||
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."
|
||||
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
|
||||
supabase:
|
||||
url: https://sylbynfpltfypiiimxwp.supabase.co
|
||||
key: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InN5bGJ5bmZwbHRmeXBpaWlteHdwIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc2MjM1Njg5OSwiZXhwIjoyMDc3OTMyODk5fQ.4pZqP24rE-cKnXOyrMa88RuNbkKeL7Q2q3IiUCuMwAg
|
||||
Reference in New Issue
Block a user