fix: base_url port
feat: add types for reasoning_content and _metadata fix: key format incompatibility
This commit is contained in:
parent
c7601b2270
commit
76703e2e3e
5 changed files with 54 additions and 7 deletions
|
|
@ -9,6 +9,8 @@ export interface Message {
|
|||
name?: string;
|
||||
tool_calls?: ToolCall[];
|
||||
tool_call_id?: string;
|
||||
/** Thinking-model reasoning output (Qwen3, DeepSeek-R1, etc.) */
|
||||
reasoning_content?: string;
|
||||
}
|
||||
|
||||
export interface ToolCall {
|
||||
|
|
@ -70,12 +72,28 @@ export interface Choice {
|
|||
logprobs?: unknown;
|
||||
}
|
||||
|
||||
export interface MemoryProtectionInfo {
|
||||
enabled: boolean;
|
||||
platform: string;
|
||||
protection_level: string;
|
||||
has_memory_locking: boolean;
|
||||
has_secure_zeroing: boolean;
|
||||
supports_full_protection: boolean;
|
||||
page_size?: number;
|
||||
}
|
||||
|
||||
export interface ResponseMetadata {
|
||||
payload_id: string;
|
||||
processed_at: number;
|
||||
is_encrypted: boolean;
|
||||
encryption_algorithm: string;
|
||||
response_status: string;
|
||||
/** Hardware routing tier used for this request */
|
||||
security_tier?: string;
|
||||
/** Server-side memory protection details */
|
||||
memory_protection?: MemoryProtectionInfo;
|
||||
/** CUDA device ID used for inference (if applicable) */
|
||||
cuda_device?: string | number;
|
||||
}
|
||||
|
||||
export interface ChatCompletionResponse {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue