Skip to content

Commit

Permalink
Merge pull request #16 from technologiestiftung/staging
Browse files Browse the repository at this point in the history
feat: more details for model endpoint
  • Loading branch information
Jaszkowic authored Aug 27, 2024
2 parents 66fc344 + 3ce3a25 commit 4bfb897
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/controllers/model-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,31 @@ export const getModels = (req: Request, res: Response<ModelResponse>) => {
provider: ModelProvider.OpenAI,
isGdprCompliant: false,
contextSize: 128000,
isOpenSource: false,
serverLocation: "USA",
description: "Aktuelles Modell von OpenAI, gehostet von OpenAI.",
},
{
identifier: "azure-gpt-4o-mini",
baseModelName: "gpt-4o-mini",
provider: ModelProvider.Azure,
isGdprCompliant: true,
contextSize: 128000,
isOpenSource: false,
serverLocation: "Schweden",
description:
"Aktuelles Modell von OpenAI, datenschutzkonform gehostet von Microsoft Azure.",
},
{
identifier: "citylab-macstudio-llama-3.1",
baseModelName: "llama3.1",
provider: ModelProvider.Ollama,
isGdprCompliant: true,
contextSize: 128000,
isOpenSource: true,
serverLocation: "Berlin",
description:
"Open Source - Modell von Meta, datenschutzkonform gehostet im CityLAB Berlin.",
},
],
parameters: LLM_PARAMETERS,
Expand Down
3 changes: 3 additions & 0 deletions src/types/model-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export interface Model {
provider: ModelProvider;
isGdprCompliant: boolean;
contextSize: number;
isOpenSource: boolean;
serverLocation: string;
description: string;
}

export interface ModelResponse {
Expand Down

0 comments on commit 4bfb897

Please sign in to comment.