MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / getModel

Function getModel

src/utils/model.ts:48–55  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

46export const models = [gpt35turbo, gpt4, gpt4turbo, gpt4ho, deepseekChat];
47
48export const getModel = (name: string) => {
49 for (const model of models) {
50 if (model.name === name) {
51 return model;
52 }
53 }
54 return gpt35turbo;
55};

Callers 6

ConnectionSidebarFunction · 0.90
SchemaDrawerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected