#Dagger Cloud

1 messages · Page 1 of 1 (latest)

radiant monolith
#

first it tries to select OpenAI, but fails to see the key.

then it seems to see the key, but fails on casting the binding.

:robot: 0.2s
│ ! POST "https://api.openai.com/v1/chat/completions": 401 Unauthorized {
│ !         "message": "Incorrect API key provided: anything. You can find your API key
│ ! at https://platform.openai.com/account/api-keys.",
│ !         "type": "invalid_request_error",
│ !         "param": null,
│ !         "code": "invalid_api_key"
│ !     }
! input: llm.withEnv.withPrompt.env POST "https://api.openai.com/v1/chat/completions":
! 401 Unauthorized {
!         "message": "Incorrect API key provided: anything. You can find your API key at
! https://platform.openai.com/account/api-keys.",
!         "type": "invalid_request_error",
!         "param": null,
!         "code": "invalid_api_key"
!     }

✘ llm | with-env $myenv | with-prompt "start with empty, add 2 poems about AI, 1 haiku a
! input: llm.withEnv.withPrompt.env.output.asDirectory binding value is nil
│ ✔ Env.output(name: "full"): Binding! 0.0s
│ ✘ .asDirectory: Directory! 0.0s
│ ! binding value is nil
! input: llm.withEnv.withPrompt.env.output.asDirectory binding value is nil
#

Until I give --model which works perfectly

llm --model gpt | with-env $myenv | with-prompt "start with empty, add 2 poems about
  AI, 1 haiku and 1 sonnet, return as full" | env | output "full" | as-directory | terminal
#

and then works fine after that