All files / api/src/ai-providers/azure-openai types.ts

0% Statements 0/0
0% Branches 1/1
0% Functions 1/1
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                                         
import type { ChatCompletionResponseBody } from '@shared/types/api/routes/chat-completions-api';
import type { CompletionResponseBody } from '@shared/types/api/routes/completions-api';
import type { CreateEmbeddingsResponseBody } from '@shared/types/api/routes/embeddings-api';
import type { GenerateImageResponseBody } from '@shared/types/api/routes/images-api';
 
export interface AzureOpenAIChatCompleteResponse
  extends ChatCompletionResponseBody {}
 
export interface AzureOpenAICompleteResponse extends CompletionResponseBody {}
 
export interface AzureOpenAIFinetuneResponse {
  status: string;
  [key: string]: unknown;
}
 
export interface AzureOpenAIEmbedResponse
  extends CreateEmbeddingsResponseBody {}
 
interface AzureOpenAIImageObject {
  b64_json?: string; // The base64-encoded JSON of the generated image, if response_format is b64_json.
  url?: string; // The URL of the generated image, if response_format is url (default).
  revised_prompt?: string; // The prompt that was used to generate the image, if there was any revision to the prompt.
}
 
export interface AzureOpenAIImageGenerateResponse
  extends GenerateImageResponseBody {
  data: AzureOpenAIImageObject[];
}