Skip to content

Using wildcard imports (use rust_chatgpt::*;) is discouraged as it makes it unclear which items are being imported and can lead to namespace pollution. Consider importing specific items like use rust_chatgpt::{ChatGpt, ChatGptRequestChatCompletions};. #3

Description

@vincenzopalazzo

Using wildcard imports (use rust_chatgpt::*;) is discouraged as it makes it unclear which items are being imported and can lead to namespace pollution. Consider importing specific items like use rust_chatgpt::{ChatGpt, ChatGptRequestChatCompletions};.

use rust_chatgpt::{ChatGpt, ChatGptRequestChatCompletions, ChatGptChatFormat};

Originally posted by @Copilot in #2 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions