nlkitai / nlux

The π—£π—Όπ˜„π—²π—Ώπ—³π˜‚π—Ή Conversational AI JavaScript Library πŸ’¬ β€”Β UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more 🧑 React, Next.js, and plain JavaScript ⭐️
https://docs.nlkit.com/nlux
Other
943 stars 48 forks source link

The project adopts the transit API, can you customize the configuration host? #40

Closed wkABXY closed 3 weeks ago

wkABXY commented 3 months ago

import {DataTransferMode} from '@nlux/core'; import {OpenAiModel} from './model';

export type ChatAdapterOptions = { dataTransferMode?: DataTransferMode; model?: OpenAiModel; apiKey: string; systemMessage?: string; host?: string; };

wkABXY commented 3 months ago

OPENAI_PROXY_URL

salmenus commented 3 weeks ago

Hi @wkABXY We will not be maintaining the OpenAI adapter, as we recommend using custom adapters.

You can easily create a custom adapter that simply uses the OpenAI NPM and your preferred config.

Ref doc here: https://docs.nlkit.com/nlux/reference/adapters/custom-adapters