Skip to content

Commit 471bacc

Browse files
committed
'Env. variable missing' error handling added to the FAQ section.
1 parent e2dd6d3 commit 471bacc

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ or to *pom.xml* (if you use maven)
3939
## Config ⚙️
4040

4141
- Env. variables: `OPENAI_SCALA_CLIENT_API_KEY` and optionally also `OPENAI_SCALA_CLIENT_ORG_ID` (if you have one)
42-
- File config: [openai-scala-client.conf](./openai-core/src/main/resources/openai-scala-client.conf)
42+
- File config: (default) [openai-scala-client.conf](./openai-core/src/main/resources/openai-scala-client.conf)
4343

4444
## Usage 👨‍🎓
4545

@@ -164,7 +164,12 @@ openai-scala-client {
164164
}
165165
```
166166

167-
3. _It all looks cool. I want to chat with you about your research and development?_
167+
3. _I got an exception like `com.typesafe.config.ConfigException$UnresolvedSubstitution: openai-scala-client.conf @ jar:file:.../io/cequence/openai-scala-client_2.13/0.0.1/openai-scala-client_2.13-0.0.1.jar!/openai-scala-client.conf: 4: Could not resolve substitution to a value: ${OPENAI_SCALA_CLIENT_API_KEY}`. What should I do?_
168+
169+
Set the env. variable `OPENAI_SCALA_CLIENT_API_KEY`. If you don't have one register [here](https://beta.openai.com/signup).
170+
171+
172+
4. _It all looks cool. I want to chat with you about your research and development?_
168173

169174
Just shoot us an email at [[email protected]](mailto:[email protected]?subject=Research%20andDevelopment).
170175

project/plugins.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
logLevel := Level.Warn
22

3-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.15") // 3.9.15
4-
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
5-
6-
// addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
3+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.15")
4+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

0 commit comments

Comments
 (0)