Skip to content

Commit 232a35e

Browse files
committed
Missing required parameter: 'input'.
OpenAI::Errors::BadRequestError - {url: "https://api.openai.com/v1/responses", status: 400, body: {error: {message: "Missing required parameter: 'input'.", type: "invalid_request_error", param: "input", code: "missing_required_parameter"}}}: app/controllers/solutions_controller.rb:64:in `process_inputs'
1 parent 87f082a commit 232a35e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ GEM
8686
uri (>= 0.13.1)
8787
addressable (2.8.7)
8888
public_suffix (>= 2.0.2, < 7.0)
89-
ai-chat (0.2.1)
89+
ai-chat (0.2.3)
9090
base64 (> 0.1.1)
9191
json (~> 2.0)
9292
marcel (~> 1.0)
@@ -96,7 +96,7 @@ GEM
9696
tabulo
9797
ast (2.4.2)
9898
awesome_print (1.9.2)
99-
base64 (0.2.0)
99+
base64 (0.3.0)
100100
bcrypt (3.1.20)
101101
bcrypt_pbkdf (1.1.1)
102102
bcrypt_pbkdf (1.1.1-arm64-darwin)
@@ -139,7 +139,7 @@ GEM
139139
ostruct
140140
coderay (1.1.3)
141141
concurrent-ruby (1.3.5)
142-
connection_pool (2.5.0)
142+
connection_pool (2.5.3)
143143
crack (1.0.0)
144144
bigdecimal
145145
rexml
@@ -236,7 +236,7 @@ GEM
236236
jbuilder (2.13.0)
237237
actionview (>= 5.0.0)
238238
activesupport (>= 5.0.0)
239-
json (2.10.2)
239+
json (2.13.2)
240240
kamal (2.5.3)
241241
activesupport (>= 7.0)
242242
base64 (~> 0.2)

app/controllers/solutions_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def process_inputs
6161

6262
result = chat.generate!
6363

64-
ap chat.generate!
65-
64+
ap result
65+
6666
@g_carbs = result.fetch("carbohydrates")
6767
@g_protein = result.fetch("protein")
6868
@g_fat = result.fetch("fat")

0 commit comments

Comments
 (0)