adriansanz commited on
Commit
6365a8a
·
verified ·
1 Parent(s): 69df6a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -38,16 +38,7 @@ class GeminiLLM(LLM):
38
  data = {
39
  "contents": [
40
  {
41
- "role": "system",
42
- "content": {
43
- "parts": ["You are an agent. Please respond concisely."]
44
- }
45
- },
46
- {
47
- "role": "user",
48
- "content": {
49
- "parts": [prompt]
50
- }
51
  }
52
  ],
53
  "generationConfig": {
 
38
  data = {
39
  "contents": [
40
  {
41
+ "parts": [{"text": prompt}]
 
 
 
 
 
 
 
 
 
42
  }
43
  ],
44
  "generationConfig": {