Skip to content

[Feature] Add Support for Tokenflux.ai #613

@zerob13

Description

@zerob13

Is your feature request related to a problem? Please describe.

The application currently lacks support for the Tokenflux.ai API provider. Tokenflux.ai is another service providing access to large language models. Not supporting it means users who prefer or have access to Tokenflux cannot use it within our application, limiting their options.

Describe the solution you'd like

I would like to request the addition of Tokenflux.ai as a new provider. Given the common practice, it likely offers an OpenAI-compatible API, which would make integration easier. The key information would be:

  • Provider Name: Tokenflux
  • API Base URL: https://api.tokenflux.ai/v1 (Note: This is a presumed URL based on industry standards, confirmation is needed)
  • Authentication: Bearer Token using an API Key.

Describe alternatives you've considered

Using only the currently supported providers, which prevents users from utilizing their Tokenflux.ai accounts or its specific features.

Additional context

The official website for the service is: https://tokenflux.ai/

A cURL command example would likely resemble the OpenAI standard. The exact details should be verified from their official API documentation. A hypothetical example is provided below:

# Note: This is a hypothetical example.
# Please refer to Tokenflux.ai's official documentation for the correct details.
curl -X POST https://api.tokenflux.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_TOKENFLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "some-tokenflux-model",
"messages": [{
    "role": "user",
    "content": "Explain the importance of fast language models"
}]
}'

功能请求:添加对 Tokenflux.ai 的支持

你的功能请求是否与某个问题有关?请描述一下。

当前应用不支持 Tokenflux.ai 作为 LLM provider。Tokenflux.ai 是另一个提供大语言模型访问的服务。不支持它意味着希望或需要使用 Tokenflux 的用户无法在我们的应用中进行集成,限制了他们的选择。

请描述你希望的解决方案

希望能支持添加 Tokenflux.ai 作为一个新的 Provider 选项。根据行业惯例,它很可能提供与 OpenAI 兼容的 API,这将简化集成工作。关键配置信息如下:

  • Provider 名称: Tokenflux
  • API Base URL: https://api.tokenflux.ai/v1 (注意: 此为基于行业标准的推测 URL,需官方确认)
  • 认证方式: 使用 API 密钥进行 Bearer Token 认证。

请描述你考虑过的其他替代方案

仅使用当前已支持的 Provider,但这会阻止用户利用他们的 Tokenflux.ai 账户或其特定功能。

附加背景

该服务的官方网站是:https://tokenflux.ai/

cURL 请求示例很可能与 OpenAI 标准类似。确切的细节需要从其官方 API 文档中进行验证。下面提供一个假设的示例:

# 注意:这是一个假设的示例。
# 请参考 Tokenflux.ai 官方文档以获取正确信息。
curl -X POST https://api.tokenflux.ai/v1/chat/completions \
-H "Authorization: Bearer 你的TOKENFLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "某个tokenflux模型",
"messages": [{
    "role": "user",
    "content": "解释一下为什么快速的语言模型很重要"
}]
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions