Upload types.ts
Browse files- src/types.ts +9 -0
src/types.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface AnthropicMessage {
|
|
| 20 |
export interface AnthropicContentBlock {
|
| 21 |
type: 'text' | 'tool_use' | 'tool_result' | 'image';
|
| 22 |
text?: string;
|
|
|
|
|
|
|
| 23 |
// tool_use fields
|
| 24 |
id?: string;
|
| 25 |
name?: string;
|
|
@@ -91,6 +93,13 @@ export interface AppConfig {
|
|
| 91 |
timeout: number;
|
| 92 |
proxy?: string;
|
| 93 |
cursorModel: string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
fingerprint: {
|
| 95 |
userAgent: string;
|
| 96 |
};
|
|
|
|
| 20 |
export interface AnthropicContentBlock {
|
| 21 |
type: 'text' | 'tool_use' | 'tool_result' | 'image';
|
| 22 |
text?: string;
|
| 23 |
+
// image fields
|
| 24 |
+
source?: { type: string; media_type?: string; data: string };
|
| 25 |
// tool_use fields
|
| 26 |
id?: string;
|
| 27 |
name?: string;
|
|
|
|
| 93 |
timeout: number;
|
| 94 |
proxy?: string;
|
| 95 |
cursorModel: string;
|
| 96 |
+
vision?: {
|
| 97 |
+
enabled: boolean;
|
| 98 |
+
mode: 'ocr' | 'api';
|
| 99 |
+
baseUrl: string;
|
| 100 |
+
apiKey: string;
|
| 101 |
+
model: string;
|
| 102 |
+
};
|
| 103 |
fingerprint: {
|
| 104 |
userAgent: string;
|
| 105 |
};
|