2023-11-28 23:50:50 -08:00
|
|
|
from typing import Optional
|
2023-04-06 15:34:57 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
from pydantic import BaseModel
|
2023-04-06 15:34:57 -07:00
|
|
|
|
|
|
|
from ..models.ai_plugin_api import AiPluginApi
|
|
|
|
from ..models.ai_plugin_auth import AiPluginAuth
|
|
|
|
|
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class AiPluginManifest(BaseModel):
|
2023-11-27 16:01:20 -08:00
|
|
|
"""AI plugin manifest.
|
|
|
|
|
|
|
|
This is used for OpenAI's ChatGPT plugins. You can read more about them [here](https://platform.openai.com/docs/plugins/getting-started/plugin-manifest).
|
2023-11-28 23:50:50 -08:00
|
|
|
"""
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
api: AiPluginApi
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
auth: AiPluginAuth
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
contact_email: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
description_for_human: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
description_for_model: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
legal_info_url: str
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
logo_url: str
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
name_for_human: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
name_for_model: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
schema_version: Optional[str] = None
|