Skip to content

Fix OpenAI token key name - #13

Open
Nanosplitter wants to merge 1 commit into
mainfrom
fix-openai-token
Open

Fix OpenAI token key name#13
Nanosplitter wants to merge 1 commit into
mainfrom
fix-openai-token

Conversation

@Nanosplitter

@Nanosplitter Nanosplitter commented Oct 17, 2024

Copy link
Copy Markdown
Owner

Rename the OpenAI API key from openapi_token to openai_token in various files.

  • cogs/chat.py

    • Change the key name from openapi_token to openai_token when accessing the OpenAI API key from the config dictionary.
  • cogs/aistuff.py

    • Change the key name from openapi_token to openai_token when accessing the OpenAI API key from the config dictionary.
    • Update the content of a message in the create_title function.
  • cogs/tldr.py

    • Change the key name from openapi_token to openai_token when accessing the OpenAI API key from the config dictionary.
  • noncommands/dadroid.py

    • Change the key name from openapi_token to openai_token when accessing the OpenAI API key from the config dictionary.
  • config template.yaml

    • Change the key name from openapi_token to openai_token.

For more details, open the Copilot Workspace session.

Rename the OpenAI API key from `openapi_token` to `openai_token` in various files.

* **cogs/chat.py**
  - Change the key name from `openapi_token` to `openai_token` when accessing the OpenAI API key from the `config` dictionary.

* **cogs/aistuff.py**
  - Change the key name from `openapi_token` to `openai_token` when accessing the OpenAI API key from the `config` dictionary.
  - Update the content of a message in the `create_title` function.

* **cogs/tldr.py**
  - Change the key name from `openapi_token` to `openai_token` when accessing the OpenAI API key from the `config` dictionary.

* **noncommands/dadroid.py**
  - Change the key name from `openapi_token` to `openai_token` when accessing the OpenAI API key from the `config` dictionary.

* **config template.yaml**
  - Change the key name from `openapi_token` to `openai_token`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Nanosplitter/DadBot?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant