open-learning-exchange/planet

View on GitHub
chatapi/src/models/ai-providers.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
type ProviderName = 'openai' | 'perplexity' | 'gemini';

export interface AIProvider {
  name: ProviderName;
  model?: string;
}

interface Assistant {
  name: string;
  instructions: string;
}

interface Providers {
  openai?: string;
  perplexity?: string;
  gemini?: string;
}

export interface ModelsDocument {
  models: Providers;
  keys: Providers;
  assistant?: Assistant;
}