MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / to_response_dict

Method to_response_dict

backend/app/models/model/model.py:76–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 )
75
76 def to_response_dict(self) -> Dict:
77 model_schema = self.model_schema()
78 return {
79 "object": "Model",
80 "model_id": self.model_id,
81 "model_schema_id": self.model_schema_id,
82 "provider_id": model_schema.provider_id or self.provider_id,
83 "provider_model_id": model_schema.provider_model_id or self.provider_model_id,
84 "name": self.name,
85 "type": self.type,
86 "properties": model_schema.properties or self.properties,
87 "display_credentials": self.display_credentials,
88 "updated_timestamp": self.updated_timestamp,
89 "created_timestamp": self.created_timestamp,
90 }
91
92 @staticmethod
93 def object_name() -> str:

Callers 15

api_login_adminFunction · 0.45
api_refresh_admin_tokenFunction · 0.45
api_getFunction · 0.45
api_listFunction · 0.45
api_createFunction · 0.45
api_updateFunction · 0.45
api_getFunction · 0.45
api_listFunction · 0.45
api_createFunction · 0.45
api_updateFunction · 0.45

Calls 1

model_schemaMethod · 0.95

Tested by

no test coverage detected