| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- declare namespace CHAT {
- interface DIALOG_PARAMS {
- 'name': string,
- 'icon': string,
- 'language': string,
- 'prompt_config': {
- 'empty_response': string,
- 'prologue': string,
- 'quote': boolean,
- 'keyword':boolean,
- 'tts':boolean,
- 'system':string
- 'refine_multiturn':boolean,
- 'use_kg':boolean,
- 'reasoning':boolean,
- 'parameters': {'key':string, 'optional':boolean }[]
- 'llm_id':string
- 'llm_setting': {
- 'temperature': number,
- 'top_p': number
- 'presence_penalty':number
- 'frequency_penalty':number
- },
- 'similarity_threshold': number
- 'vector_similarity_weight': number
- 'top_n': number
- }
- }
- interface DIALOG {
- id: string
- name: string
- description: string
- }
- interface DELTA {
- 'content': string,
- 'role': string,
- 'function_call': null,
- 'tool_calls': null
- }
- interface INFO {
- 'id': string,
- 'choices': {
- 'delta': DELTA,
- 'finish_reason': null,
- 'index': number,
- 'logprobs': null
- }[],
- 'created': string,
- 'model': 'model',
- 'object': string,
- 'system_fingerprint': string,
- 'usage': null
- }
- interface CONVERSATION_PARAMS {
- 'dialog_id'?: string,
- 'name': string,
- 'is_new': boolean,
- 'conversation_id': string,
- 'message'?: {'role': string, 'content': string}[]
- }
- interface CONVERSATION {
- 'dialog_id'?: string,
- 'name': string,
- 'create_time': number
- 'is_new': boolean,
- 'conversation_id': string,
- 'message'?: {'role': string, 'content': string}[]
- }
- }
|