Confusion between OPENAI_KEY and OPENAI_TOKEN: settled on OPENAI_TOKEN. (#161)

This commit is contained in:
cybermaggedon 2024-11-15 18:54:54 +00:00 committed by GitHub
parent 081dd697c4
commit 0253281727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ To change the `Ollama` model, first make sure the desired model has been pulled
### OpenAI API
```
export OPENAI_KEY=<TOKEN-GOES-HERE>
export OPENAI_TOKEN=<TOKEN-GOES-HERE>
docker compose -f tg-launch-openai-cassandra.yaml up -d # Using Cassandra as the graph store
docker compose -f tg-launch-openai-neo4j.yaml up -d # Using Neo4j as the graph store
```
@ -458,4 +458,4 @@ docker compose -f tg-launch-<model-deployment>-<graph-store>.yaml down -v
> To confirm all Docker volumes have been removed, check that the following list is empty:
> ```
> docker volume ls
> ```
> ```

View file

@ -23,7 +23,7 @@ default_subscriber = module
default_model = 'gpt-3.5-turbo'
default_temperature = 0.0
default_max_output = 4096
default_api_key = os.getenv("OPENAI_KEY")
default_api_key = os.getenv("OPENAI_TOKEN")
class Processor(ConsumerProducer):