mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
* feat(config): add support for groq AI provider, including config validation and engine implementation (#381) * fix migrations (#414) --------- Co-authored-by: Takanori Matsumoto <matscube@gmail.com> Co-authored-by: BILLY Maxime <ozeliurs@gmail.com>
10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
import { OpenAiConfig, OpenAiEngine } from './openAi';
|
|
|
|
interface GroqConfig extends OpenAiConfig {}
|
|
|
|
export class GroqEngine extends OpenAiEngine {
|
|
constructor(config: GroqConfig) {
|
|
config.baseURL = 'https://api.groq.com/openai/v1';
|
|
super(config);
|
|
}
|
|
} |