alioth-center / akasha-whisper

AKasha Whisper是一个基于AI工作流的对话机器人核心,提供基于文本、音频等多种方式的连续对话
MIT License
2 stars 1 forks source link

Feature develop: add akasha-whisper as an openai provider in akasha-agent #1

Open sunist-c opened 1 week ago

sunist-c commented 1 week ago

Adding akasha-whisper as an OpenAI Provider in Akasha-Agent

Reference: how to add an openai compatible provider

Feature Overview

  1. New Provider Integration: Introduce a new OpenAI compatible provider named akasha-whisper in akasha-agent, akin to existing integrations like OpenAI and Zhipu.
  2. User Information Handling:
    • When sending a request to the chat/complete endpoint, utilize the user's email obtained via OAuth authentication to populate the user field in the request.
    • If the email is not available, default the user field to an empty string.

Configuration Parameters

To support this new provider, the following configuration fields should be added to the environment variables:

AW_API_KEY: 'sk_xxxxxxx'
AW_ENDPOINT: 'https://api.xxx.xxx/v1'
Jecosine commented 1 week ago

@sunist-c A SVG format icon for akasha-whisper is required for the feature update.

sunist-c commented 1 week ago

@sunist-c A SVG format icon for akasha-whisper is required for the feature update.

@Jecosine in progress