@hautechai/sdk 0.3.45 → 0.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/autogenerated/api.d.ts +580 -0
- package/dist/autogenerated/api.js +176 -0
- package/dist/sdk/index.d.ts +16 -0
- package/dist/sdk/operations/index.d.ts +5 -1
- package/dist/sdk/operations/index.js +1 -0
- package/dist/sdk/pipelines/index.d.ts +12 -0
- package/dist/sdk/pipelines/index.js +1 -0
- package/package.json +1 -1
|
@@ -1544,6 +1544,432 @@ export declare const GPTV1InputModelEnum: {
|
|
|
1544
1544
|
readonly _41Mini: "gpt-4.1-mini";
|
|
1545
1545
|
};
|
|
1546
1546
|
export type GPTV1InputModelEnum = typeof GPTV1InputModelEnum[keyof typeof GPTV1InputModelEnum];
|
|
1547
|
+
/**
|
|
1548
|
+
*
|
|
1549
|
+
* @export
|
|
1550
|
+
* @interface GPTV2AssistantMessageDto
|
|
1551
|
+
*/
|
|
1552
|
+
export interface GPTV2AssistantMessageDto {
|
|
1553
|
+
/**
|
|
1554
|
+
* The content of the assistant message.
|
|
1555
|
+
* @type {string}
|
|
1556
|
+
* @memberof GPTV2AssistantMessageDto
|
|
1557
|
+
*/
|
|
1558
|
+
'content'?: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* The role of the message sender.
|
|
1561
|
+
* @type {string}
|
|
1562
|
+
* @memberof GPTV2AssistantMessageDto
|
|
1563
|
+
*/
|
|
1564
|
+
'role': GPTV2AssistantMessageDtoRoleEnum;
|
|
1565
|
+
/**
|
|
1566
|
+
* The name of the sender, if applicable.
|
|
1567
|
+
* @type {string}
|
|
1568
|
+
* @memberof GPTV2AssistantMessageDto
|
|
1569
|
+
*/
|
|
1570
|
+
'name'?: string;
|
|
1571
|
+
/**
|
|
1572
|
+
* The refusal message, if applicable.
|
|
1573
|
+
* @type {string}
|
|
1574
|
+
* @memberof GPTV2AssistantMessageDto
|
|
1575
|
+
*/
|
|
1576
|
+
'refusal'?: string;
|
|
1577
|
+
/**
|
|
1578
|
+
* The tool calls made by the assistant, if any.
|
|
1579
|
+
* @type {Array<GPTV2MessageToolCallDto>}
|
|
1580
|
+
* @memberof GPTV2AssistantMessageDto
|
|
1581
|
+
*/
|
|
1582
|
+
'tool_calls'?: Array<GPTV2MessageToolCallDto>;
|
|
1583
|
+
}
|
|
1584
|
+
export declare const GPTV2AssistantMessageDtoRoleEnum: {
|
|
1585
|
+
readonly Assistant: "assistant";
|
|
1586
|
+
};
|
|
1587
|
+
export type GPTV2AssistantMessageDtoRoleEnum = typeof GPTV2AssistantMessageDtoRoleEnum[keyof typeof GPTV2AssistantMessageDtoRoleEnum];
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @export
|
|
1591
|
+
* @interface GPTV2DeveloperMessageDto
|
|
1592
|
+
*/
|
|
1593
|
+
export interface GPTV2DeveloperMessageDto {
|
|
1594
|
+
/**
|
|
1595
|
+
* The content of the developer message.
|
|
1596
|
+
* @type {string}
|
|
1597
|
+
* @memberof GPTV2DeveloperMessageDto
|
|
1598
|
+
*/
|
|
1599
|
+
'content': string;
|
|
1600
|
+
/**
|
|
1601
|
+
* The role of the message sender.
|
|
1602
|
+
* @type {string}
|
|
1603
|
+
* @memberof GPTV2DeveloperMessageDto
|
|
1604
|
+
*/
|
|
1605
|
+
'role': GPTV2DeveloperMessageDtoRoleEnum;
|
|
1606
|
+
/**
|
|
1607
|
+
* The name of the sender, if applicable.
|
|
1608
|
+
* @type {string}
|
|
1609
|
+
* @memberof GPTV2DeveloperMessageDto
|
|
1610
|
+
*/
|
|
1611
|
+
'name'?: string;
|
|
1612
|
+
}
|
|
1613
|
+
export declare const GPTV2DeveloperMessageDtoRoleEnum: {
|
|
1614
|
+
readonly Developer: "developer";
|
|
1615
|
+
};
|
|
1616
|
+
export type GPTV2DeveloperMessageDtoRoleEnum = typeof GPTV2DeveloperMessageDtoRoleEnum[keyof typeof GPTV2DeveloperMessageDtoRoleEnum];
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @export
|
|
1620
|
+
* @interface GPTV2Input
|
|
1621
|
+
*/
|
|
1622
|
+
export interface GPTV2Input {
|
|
1623
|
+
/**
|
|
1624
|
+
* ID of the model to use. See OpenAI docs for model endpoint compatibility.
|
|
1625
|
+
* @type {string}
|
|
1626
|
+
* @memberof GPTV2Input
|
|
1627
|
+
*/
|
|
1628
|
+
'model'?: GPTV2InputModelEnum;
|
|
1629
|
+
/**
|
|
1630
|
+
* A list of messages comprising the conversation so far. Each message must be one of: system, user, assistant, tool, or developer message DTO.
|
|
1631
|
+
* @type {Array<GPTV2InputMessagesInner>}
|
|
1632
|
+
* @memberof GPTV2Input
|
|
1633
|
+
*/
|
|
1634
|
+
'messages': Array<GPTV2InputMessagesInner>;
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @type {GPTV2InputResponseFormat}
|
|
1638
|
+
* @memberof GPTV2Input
|
|
1639
|
+
*/
|
|
1640
|
+
'response_format'?: GPTV2InputResponseFormat;
|
|
1641
|
+
/**
|
|
1642
|
+
* This feature is in Beta. If specified, OpenAI will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
1643
|
+
* @type {number}
|
|
1644
|
+
* @memberof GPTV2Input
|
|
1645
|
+
*/
|
|
1646
|
+
'seed'?: number;
|
|
1647
|
+
/**
|
|
1648
|
+
* A list of tools the model may call. Currently, only functions are supported as a tool.
|
|
1649
|
+
* @type {Array<GPTV2ToolDto>}
|
|
1650
|
+
* @memberof GPTV2Input
|
|
1651
|
+
*/
|
|
1652
|
+
'tools'?: Array<GPTV2ToolDto>;
|
|
1653
|
+
/**
|
|
1654
|
+
* Controls which (if any) tool is called by the model. \'none\', \'auto\', \'required\', or a specific function tool.
|
|
1655
|
+
* @type {GPTV2ToolChoiceDto}
|
|
1656
|
+
* @memberof GPTV2Input
|
|
1657
|
+
*/
|
|
1658
|
+
'tool_choice'?: GPTV2ToolChoiceDto;
|
|
1659
|
+
/**
|
|
1660
|
+
*
|
|
1661
|
+
* @type {GPTV2ResponseFormatTextOrObjectDto}
|
|
1662
|
+
* @memberof GPTV2Input
|
|
1663
|
+
*/
|
|
1664
|
+
'response_format_text_or_object'?: GPTV2ResponseFormatTextOrObjectDto;
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @type {number}
|
|
1668
|
+
* @memberof GPTV2Input
|
|
1669
|
+
*/
|
|
1670
|
+
'max_completion_tokens'?: number;
|
|
1671
|
+
}
|
|
1672
|
+
export declare const GPTV2InputModelEnum: {
|
|
1673
|
+
readonly Gpt4o: "gpt-4o";
|
|
1674
|
+
readonly O3: "o3";
|
|
1675
|
+
readonly O3Mini: "o3-mini";
|
|
1676
|
+
readonly Gpt41: "gpt-4.1";
|
|
1677
|
+
readonly Gpt41Mini: "gpt-4.1-mini";
|
|
1678
|
+
readonly Gpt41Nano: "gpt-4.1-nano";
|
|
1679
|
+
};
|
|
1680
|
+
export type GPTV2InputModelEnum = typeof GPTV2InputModelEnum[keyof typeof GPTV2InputModelEnum];
|
|
1681
|
+
/**
|
|
1682
|
+
* @type GPTV2InputMessagesInner
|
|
1683
|
+
* @export
|
|
1684
|
+
*/
|
|
1685
|
+
export type GPTV2InputMessagesInner = GPTV2AssistantMessageDto | GPTV2DeveloperMessageDto | GPTV2SystemMessageDto | GPTV2ToolMessageDto | GPTV2UserMessageDto;
|
|
1686
|
+
/**
|
|
1687
|
+
* @type GPTV2InputResponseFormat
|
|
1688
|
+
* The response format for the model output. See OpenAI docs for details.
|
|
1689
|
+
* @export
|
|
1690
|
+
*/
|
|
1691
|
+
export type GPTV2InputResponseFormat = GPTV2ResponseFormatJsonSchemaDto | GPTV2ResponseFormatTextOrObjectDto;
|
|
1692
|
+
/**
|
|
1693
|
+
*
|
|
1694
|
+
* @export
|
|
1695
|
+
* @interface GPTV2MessageToolCallDto
|
|
1696
|
+
*/
|
|
1697
|
+
export interface GPTV2MessageToolCallDto {
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @type {string}
|
|
1701
|
+
* @memberof GPTV2MessageToolCallDto
|
|
1702
|
+
*/
|
|
1703
|
+
'id': string;
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @type {object}
|
|
1707
|
+
* @memberof GPTV2MessageToolCallDto
|
|
1708
|
+
*/
|
|
1709
|
+
'function': object;
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
* @type {string}
|
|
1713
|
+
* @memberof GPTV2MessageToolCallDto
|
|
1714
|
+
*/
|
|
1715
|
+
'type': GPTV2MessageToolCallDtoTypeEnum;
|
|
1716
|
+
}
|
|
1717
|
+
export declare const GPTV2MessageToolCallDtoTypeEnum: {
|
|
1718
|
+
readonly Function: "function";
|
|
1719
|
+
};
|
|
1720
|
+
export type GPTV2MessageToolCallDtoTypeEnum = typeof GPTV2MessageToolCallDtoTypeEnum[keyof typeof GPTV2MessageToolCallDtoTypeEnum];
|
|
1721
|
+
/**
|
|
1722
|
+
*
|
|
1723
|
+
* @export
|
|
1724
|
+
* @interface GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1725
|
+
*/
|
|
1726
|
+
export interface GPTV2ResponseFormatJsonSchemaDetailsDto {
|
|
1727
|
+
/**
|
|
1728
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
1729
|
+
* @type {string}
|
|
1730
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1731
|
+
*/
|
|
1732
|
+
'name': string;
|
|
1733
|
+
/**
|
|
1734
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
1735
|
+
* @type {string}
|
|
1736
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1737
|
+
*/
|
|
1738
|
+
'description'?: string;
|
|
1739
|
+
/**
|
|
1740
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
1741
|
+
* @type {object}
|
|
1742
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1743
|
+
*/
|
|
1744
|
+
'schema'?: object;
|
|
1745
|
+
/**
|
|
1746
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`.
|
|
1747
|
+
* @type {boolean}
|
|
1748
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1749
|
+
*/
|
|
1750
|
+
'strict'?: boolean | null;
|
|
1751
|
+
}
|
|
1752
|
+
/**
|
|
1753
|
+
*
|
|
1754
|
+
* @export
|
|
1755
|
+
* @interface GPTV2ResponseFormatJsonSchemaDto
|
|
1756
|
+
*/
|
|
1757
|
+
export interface GPTV2ResponseFormatJsonSchemaDto {
|
|
1758
|
+
/**
|
|
1759
|
+
* The type of response format being defined: json_schema.
|
|
1760
|
+
* @type {string}
|
|
1761
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDto
|
|
1762
|
+
*/
|
|
1763
|
+
'type': GPTV2ResponseFormatJsonSchemaDtoTypeEnum;
|
|
1764
|
+
/**
|
|
1765
|
+
* The JSON schema definition for the response format. Required for type json_schema.
|
|
1766
|
+
* @type {GPTV2ResponseFormatJsonSchemaDetailsDto}
|
|
1767
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDto
|
|
1768
|
+
*/
|
|
1769
|
+
'json_schema': GPTV2ResponseFormatJsonSchemaDetailsDto;
|
|
1770
|
+
}
|
|
1771
|
+
export declare const GPTV2ResponseFormatJsonSchemaDtoTypeEnum: {
|
|
1772
|
+
readonly JsonSchema: "json_schema";
|
|
1773
|
+
};
|
|
1774
|
+
export type GPTV2ResponseFormatJsonSchemaDtoTypeEnum = typeof GPTV2ResponseFormatJsonSchemaDtoTypeEnum[keyof typeof GPTV2ResponseFormatJsonSchemaDtoTypeEnum];
|
|
1775
|
+
/**
|
|
1776
|
+
*
|
|
1777
|
+
* @export
|
|
1778
|
+
* @interface GPTV2ResponseFormatTextOrObjectDto
|
|
1779
|
+
*/
|
|
1780
|
+
export interface GPTV2ResponseFormatTextOrObjectDto {
|
|
1781
|
+
/**
|
|
1782
|
+
* The type of response format being defined: \'text\' or \'json_object\'.
|
|
1783
|
+
* @type {object}
|
|
1784
|
+
* @memberof GPTV2ResponseFormatTextOrObjectDto
|
|
1785
|
+
*/
|
|
1786
|
+
'type': GPTV2ResponseFormatTextOrObjectDtoTypeEnum;
|
|
1787
|
+
}
|
|
1788
|
+
export declare const GPTV2ResponseFormatTextOrObjectDtoTypeEnum: {
|
|
1789
|
+
readonly Text: "text";
|
|
1790
|
+
readonly JsonObject: "json_object";
|
|
1791
|
+
};
|
|
1792
|
+
export type GPTV2ResponseFormatTextOrObjectDtoTypeEnum = typeof GPTV2ResponseFormatTextOrObjectDtoTypeEnum[keyof typeof GPTV2ResponseFormatTextOrObjectDtoTypeEnum];
|
|
1793
|
+
/**
|
|
1794
|
+
*
|
|
1795
|
+
* @export
|
|
1796
|
+
* @interface GPTV2SystemMessageDto
|
|
1797
|
+
*/
|
|
1798
|
+
export interface GPTV2SystemMessageDto {
|
|
1799
|
+
/**
|
|
1800
|
+
* The content of the system message.
|
|
1801
|
+
* @type {string}
|
|
1802
|
+
* @memberof GPTV2SystemMessageDto
|
|
1803
|
+
*/
|
|
1804
|
+
'content': string;
|
|
1805
|
+
/**
|
|
1806
|
+
* The role of the message sender.
|
|
1807
|
+
* @type {string}
|
|
1808
|
+
* @memberof GPTV2SystemMessageDto
|
|
1809
|
+
*/
|
|
1810
|
+
'role': GPTV2SystemMessageDtoRoleEnum;
|
|
1811
|
+
/**
|
|
1812
|
+
* The name of the sender, if applicable.
|
|
1813
|
+
* @type {string}
|
|
1814
|
+
* @memberof GPTV2SystemMessageDto
|
|
1815
|
+
*/
|
|
1816
|
+
'name'?: string;
|
|
1817
|
+
}
|
|
1818
|
+
export declare const GPTV2SystemMessageDtoRoleEnum: {
|
|
1819
|
+
readonly System: "system";
|
|
1820
|
+
};
|
|
1821
|
+
export type GPTV2SystemMessageDtoRoleEnum = typeof GPTV2SystemMessageDtoRoleEnum[keyof typeof GPTV2SystemMessageDtoRoleEnum];
|
|
1822
|
+
/**
|
|
1823
|
+
*
|
|
1824
|
+
* @export
|
|
1825
|
+
* @interface GPTV2ToolChoiceDto
|
|
1826
|
+
*/
|
|
1827
|
+
export interface GPTV2ToolChoiceDto {
|
|
1828
|
+
/**
|
|
1829
|
+
* Controls which (if any) tool is called by the model. \'none\', \'auto\', \'required\', or a specific function tool.
|
|
1830
|
+
* @type {object}
|
|
1831
|
+
* @memberof GPTV2ToolChoiceDto
|
|
1832
|
+
*/
|
|
1833
|
+
'type': GPTV2ToolChoiceDtoTypeEnum;
|
|
1834
|
+
/**
|
|
1835
|
+
* The function to call, if type is `function`.
|
|
1836
|
+
* @type {GPTV2ToolChoiceFunctionDto}
|
|
1837
|
+
* @memberof GPTV2ToolChoiceDto
|
|
1838
|
+
*/
|
|
1839
|
+
'function'?: GPTV2ToolChoiceFunctionDto;
|
|
1840
|
+
}
|
|
1841
|
+
export declare const GPTV2ToolChoiceDtoTypeEnum: {
|
|
1842
|
+
readonly None: "none";
|
|
1843
|
+
readonly Auto: "auto";
|
|
1844
|
+
readonly Required: "required";
|
|
1845
|
+
readonly Function: "function";
|
|
1846
|
+
};
|
|
1847
|
+
export type GPTV2ToolChoiceDtoTypeEnum = typeof GPTV2ToolChoiceDtoTypeEnum[keyof typeof GPTV2ToolChoiceDtoTypeEnum];
|
|
1848
|
+
/**
|
|
1849
|
+
*
|
|
1850
|
+
* @export
|
|
1851
|
+
* @interface GPTV2ToolChoiceFunctionDto
|
|
1852
|
+
*/
|
|
1853
|
+
export interface GPTV2ToolChoiceFunctionDto {
|
|
1854
|
+
/**
|
|
1855
|
+
* The name of the function to call.
|
|
1856
|
+
* @type {string}
|
|
1857
|
+
* @memberof GPTV2ToolChoiceFunctionDto
|
|
1858
|
+
*/
|
|
1859
|
+
'name': string;
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @export
|
|
1864
|
+
* @interface GPTV2ToolDto
|
|
1865
|
+
*/
|
|
1866
|
+
export interface GPTV2ToolDto {
|
|
1867
|
+
/**
|
|
1868
|
+
* The function definition for the tool. Currently, only functions are supported.
|
|
1869
|
+
* @type {GPTV2ToolFunctionDto}
|
|
1870
|
+
* @memberof GPTV2ToolDto
|
|
1871
|
+
*/
|
|
1872
|
+
'function': GPTV2ToolFunctionDto;
|
|
1873
|
+
/**
|
|
1874
|
+
* The type of the tool. Currently, only \'function\' is supported.
|
|
1875
|
+
* @type {string}
|
|
1876
|
+
* @memberof GPTV2ToolDto
|
|
1877
|
+
*/
|
|
1878
|
+
'type': GPTV2ToolDtoTypeEnum;
|
|
1879
|
+
}
|
|
1880
|
+
export declare const GPTV2ToolDtoTypeEnum: {
|
|
1881
|
+
readonly Function: "function";
|
|
1882
|
+
};
|
|
1883
|
+
export type GPTV2ToolDtoTypeEnum = typeof GPTV2ToolDtoTypeEnum[keyof typeof GPTV2ToolDtoTypeEnum];
|
|
1884
|
+
/**
|
|
1885
|
+
*
|
|
1886
|
+
* @export
|
|
1887
|
+
* @interface GPTV2ToolFunctionDto
|
|
1888
|
+
*/
|
|
1889
|
+
export interface GPTV2ToolFunctionDto {
|
|
1890
|
+
/**
|
|
1891
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
1892
|
+
* @type {string}
|
|
1893
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1894
|
+
*/
|
|
1895
|
+
'name': string;
|
|
1896
|
+
/**
|
|
1897
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
1898
|
+
* @type {string}
|
|
1899
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1900
|
+
*/
|
|
1901
|
+
'description'?: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* The parameters the functions accepts, described as a JSON Schema object.
|
|
1904
|
+
* @type {object}
|
|
1905
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1906
|
+
*/
|
|
1907
|
+
'parameters'?: object;
|
|
1908
|
+
/**
|
|
1909
|
+
* Whether to enable strict schema adherence when generating the function call.
|
|
1910
|
+
* @type {boolean}
|
|
1911
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1912
|
+
*/
|
|
1913
|
+
'strict'?: boolean | null;
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
*
|
|
1917
|
+
* @export
|
|
1918
|
+
* @interface GPTV2ToolMessageDto
|
|
1919
|
+
*/
|
|
1920
|
+
export interface GPTV2ToolMessageDto {
|
|
1921
|
+
/**
|
|
1922
|
+
* The content of the tool message.
|
|
1923
|
+
* @type {string}
|
|
1924
|
+
* @memberof GPTV2ToolMessageDto
|
|
1925
|
+
*/
|
|
1926
|
+
'content': string;
|
|
1927
|
+
/**
|
|
1928
|
+
* The role of the message sender.
|
|
1929
|
+
* @type {string}
|
|
1930
|
+
* @memberof GPTV2ToolMessageDto
|
|
1931
|
+
*/
|
|
1932
|
+
'role': GPTV2ToolMessageDtoRoleEnum;
|
|
1933
|
+
/**
|
|
1934
|
+
* The ID of the tool call.
|
|
1935
|
+
* @type {string}
|
|
1936
|
+
* @memberof GPTV2ToolMessageDto
|
|
1937
|
+
*/
|
|
1938
|
+
'tool_call_id': string;
|
|
1939
|
+
}
|
|
1940
|
+
export declare const GPTV2ToolMessageDtoRoleEnum: {
|
|
1941
|
+
readonly Tool: "tool";
|
|
1942
|
+
};
|
|
1943
|
+
export type GPTV2ToolMessageDtoRoleEnum = typeof GPTV2ToolMessageDtoRoleEnum[keyof typeof GPTV2ToolMessageDtoRoleEnum];
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @export
|
|
1947
|
+
* @interface GPTV2UserMessageDto
|
|
1948
|
+
*/
|
|
1949
|
+
export interface GPTV2UserMessageDto {
|
|
1950
|
+
/**
|
|
1951
|
+
* The content of the user message.
|
|
1952
|
+
* @type {string}
|
|
1953
|
+
* @memberof GPTV2UserMessageDto
|
|
1954
|
+
*/
|
|
1955
|
+
'content': string;
|
|
1956
|
+
/**
|
|
1957
|
+
* The role of the message sender.
|
|
1958
|
+
* @type {string}
|
|
1959
|
+
* @memberof GPTV2UserMessageDto
|
|
1960
|
+
*/
|
|
1961
|
+
'role': GPTV2UserMessageDtoRoleEnum;
|
|
1962
|
+
/**
|
|
1963
|
+
* The name of the sender, if applicable.
|
|
1964
|
+
* @type {string}
|
|
1965
|
+
* @memberof GPTV2UserMessageDto
|
|
1966
|
+
*/
|
|
1967
|
+
'name'?: string;
|
|
1968
|
+
}
|
|
1969
|
+
export declare const GPTV2UserMessageDtoRoleEnum: {
|
|
1970
|
+
readonly User: "user";
|
|
1971
|
+
};
|
|
1972
|
+
export type GPTV2UserMessageDtoRoleEnum = typeof GPTV2UserMessageDtoRoleEnum[keyof typeof GPTV2UserMessageDtoRoleEnum];
|
|
1547
1973
|
/**
|
|
1548
1974
|
*
|
|
1549
1975
|
* @export
|
|
@@ -1881,6 +2307,102 @@ export declare const GptV1ResponseStatusEnum: {
|
|
|
1881
2307
|
readonly Failed: "failed";
|
|
1882
2308
|
};
|
|
1883
2309
|
export type GptV1ResponseStatusEnum = typeof GptV1ResponseStatusEnum[keyof typeof GptV1ResponseStatusEnum];
|
|
2310
|
+
/**
|
|
2311
|
+
*
|
|
2312
|
+
* @export
|
|
2313
|
+
* @interface GptV2Request
|
|
2314
|
+
*/
|
|
2315
|
+
export interface GptV2Request {
|
|
2316
|
+
/**
|
|
2317
|
+
*
|
|
2318
|
+
* @type {GPTV2Input}
|
|
2319
|
+
* @memberof GptV2Request
|
|
2320
|
+
*/
|
|
2321
|
+
'input': GPTV2Input;
|
|
2322
|
+
/**
|
|
2323
|
+
*
|
|
2324
|
+
* @type {object}
|
|
2325
|
+
* @memberof GptV2Request
|
|
2326
|
+
*/
|
|
2327
|
+
'metadata'?: object;
|
|
2328
|
+
}
|
|
2329
|
+
/**
|
|
2330
|
+
*
|
|
2331
|
+
* @export
|
|
2332
|
+
* @interface GptV2Response
|
|
2333
|
+
*/
|
|
2334
|
+
export interface GptV2Response {
|
|
2335
|
+
/**
|
|
2336
|
+
*
|
|
2337
|
+
* @type {string}
|
|
2338
|
+
* @memberof GptV2Response
|
|
2339
|
+
*/
|
|
2340
|
+
'kind': GptV2ResponseKindEnum;
|
|
2341
|
+
/**
|
|
2342
|
+
*
|
|
2343
|
+
* @type {OperationOutputJSON}
|
|
2344
|
+
* @memberof GptV2Response
|
|
2345
|
+
*/
|
|
2346
|
+
'output': OperationOutputJSON;
|
|
2347
|
+
/**
|
|
2348
|
+
*
|
|
2349
|
+
* @type {object}
|
|
2350
|
+
* @memberof GptV2Response
|
|
2351
|
+
*/
|
|
2352
|
+
'input': object;
|
|
2353
|
+
/**
|
|
2354
|
+
*
|
|
2355
|
+
* @type {string}
|
|
2356
|
+
* @memberof GptV2Response
|
|
2357
|
+
*/
|
|
2358
|
+
'status': GptV2ResponseStatusEnum;
|
|
2359
|
+
/**
|
|
2360
|
+
*
|
|
2361
|
+
* @type {string}
|
|
2362
|
+
* @memberof GptV2Response
|
|
2363
|
+
*/
|
|
2364
|
+
'type': string;
|
|
2365
|
+
/**
|
|
2366
|
+
*
|
|
2367
|
+
* @type {string}
|
|
2368
|
+
* @memberof GptV2Response
|
|
2369
|
+
*/
|
|
2370
|
+
'id': string;
|
|
2371
|
+
/**
|
|
2372
|
+
*
|
|
2373
|
+
* @type {string}
|
|
2374
|
+
* @memberof GptV2Response
|
|
2375
|
+
*/
|
|
2376
|
+
'creatorId': string;
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @type {object}
|
|
2380
|
+
* @memberof GptV2Response
|
|
2381
|
+
*/
|
|
2382
|
+
'metadata': object;
|
|
2383
|
+
/**
|
|
2384
|
+
*
|
|
2385
|
+
* @type {string}
|
|
2386
|
+
* @memberof GptV2Response
|
|
2387
|
+
*/
|
|
2388
|
+
'createdAt': string;
|
|
2389
|
+
/**
|
|
2390
|
+
*
|
|
2391
|
+
* @type {string}
|
|
2392
|
+
* @memberof GptV2Response
|
|
2393
|
+
*/
|
|
2394
|
+
'updatedAt': string;
|
|
2395
|
+
}
|
|
2396
|
+
export declare const GptV2ResponseKindEnum: {
|
|
2397
|
+
readonly Operation: "operation";
|
|
2398
|
+
};
|
|
2399
|
+
export type GptV2ResponseKindEnum = typeof GptV2ResponseKindEnum[keyof typeof GptV2ResponseKindEnum];
|
|
2400
|
+
export declare const GptV2ResponseStatusEnum: {
|
|
2401
|
+
readonly Pending: "pending";
|
|
2402
|
+
readonly Finished: "finished";
|
|
2403
|
+
readonly Failed: "failed";
|
|
2404
|
+
};
|
|
2405
|
+
export type GptV2ResponseStatusEnum = typeof GptV2ResponseStatusEnum[keyof typeof GptV2ResponseStatusEnum];
|
|
1884
2406
|
/**
|
|
1885
2407
|
*
|
|
1886
2408
|
* @export
|
|
@@ -6377,6 +6899,13 @@ export declare const CallApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6377
6899
|
* @throws {RequiredError}
|
|
6378
6900
|
*/
|
|
6379
6901
|
callControllerCallOperationsRunGptV1V1: (gptV1Request: GptV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6902
|
+
/**
|
|
6903
|
+
*
|
|
6904
|
+
* @param {GptV2Request} gptV2Request
|
|
6905
|
+
* @param {*} [options] Override http request option.
|
|
6906
|
+
* @throws {RequiredError}
|
|
6907
|
+
*/
|
|
6908
|
+
callControllerCallOperationsRunGptV2V1: (gptV2Request: GptV2Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6380
6909
|
/**
|
|
6381
6910
|
*
|
|
6382
6911
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -6873,6 +7402,13 @@ export declare const CallApiFp: (configuration?: Configuration) => {
|
|
|
6873
7402
|
* @throws {RequiredError}
|
|
6874
7403
|
*/
|
|
6875
7404
|
callControllerCallOperationsRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV1Response>>;
|
|
7405
|
+
/**
|
|
7406
|
+
*
|
|
7407
|
+
* @param {GptV2Request} gptV2Request
|
|
7408
|
+
* @param {*} [options] Override http request option.
|
|
7409
|
+
* @throws {RequiredError}
|
|
7410
|
+
*/
|
|
7411
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV2Response>>;
|
|
6876
7412
|
/**
|
|
6877
7413
|
*
|
|
6878
7414
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -7369,6 +7905,13 @@ export declare const CallApiFactory: (configuration?: Configuration, basePath?:
|
|
|
7369
7905
|
* @throws {RequiredError}
|
|
7370
7906
|
*/
|
|
7371
7907
|
callControllerCallOperationsRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV1Response>;
|
|
7908
|
+
/**
|
|
7909
|
+
*
|
|
7910
|
+
* @param {GptV2Request} gptV2Request
|
|
7911
|
+
* @param {*} [options] Override http request option.
|
|
7912
|
+
* @throws {RequiredError}
|
|
7913
|
+
*/
|
|
7914
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV2Response>;
|
|
7372
7915
|
/**
|
|
7373
7916
|
*
|
|
7374
7917
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -7904,6 +8447,14 @@ export declare class CallApi extends BaseAPI {
|
|
|
7904
8447
|
* @memberof CallApi
|
|
7905
8448
|
*/
|
|
7906
8449
|
callControllerCallOperationsRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV1Response, any>>;
|
|
8450
|
+
/**
|
|
8451
|
+
*
|
|
8452
|
+
* @param {GptV2Request} gptV2Request
|
|
8453
|
+
* @param {*} [options] Override http request option.
|
|
8454
|
+
* @throws {RequiredError}
|
|
8455
|
+
* @memberof CallApi
|
|
8456
|
+
*/
|
|
8457
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV2Response, any>>;
|
|
7907
8458
|
/**
|
|
7908
8459
|
*
|
|
7909
8460
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8905,6 +9456,13 @@ export declare const OperationsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
8905
9456
|
* @throws {RequiredError}
|
|
8906
9457
|
*/
|
|
8907
9458
|
operationsControllerRunGptV1V1: (gptV1Request: GptV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9459
|
+
/**
|
|
9460
|
+
*
|
|
9461
|
+
* @param {GptV2Request} gptV2Request
|
|
9462
|
+
* @param {*} [options] Override http request option.
|
|
9463
|
+
* @throws {RequiredError}
|
|
9464
|
+
*/
|
|
9465
|
+
operationsControllerRunGptV2V1: (gptV2Request: GptV2Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8908
9466
|
/**
|
|
8909
9467
|
*
|
|
8910
9468
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -9117,6 +9675,13 @@ export declare const OperationsApiFp: (configuration?: Configuration) => {
|
|
|
9117
9675
|
* @throws {RequiredError}
|
|
9118
9676
|
*/
|
|
9119
9677
|
operationsControllerRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV1Response>>;
|
|
9678
|
+
/**
|
|
9679
|
+
*
|
|
9680
|
+
* @param {GptV2Request} gptV2Request
|
|
9681
|
+
* @param {*} [options] Override http request option.
|
|
9682
|
+
* @throws {RequiredError}
|
|
9683
|
+
*/
|
|
9684
|
+
operationsControllerRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV2Response>>;
|
|
9120
9685
|
/**
|
|
9121
9686
|
*
|
|
9122
9687
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -9329,6 +9894,13 @@ export declare const OperationsApiFactory: (configuration?: Configuration, baseP
|
|
|
9329
9894
|
* @throws {RequiredError}
|
|
9330
9895
|
*/
|
|
9331
9896
|
operationsControllerRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV1Response>;
|
|
9897
|
+
/**
|
|
9898
|
+
*
|
|
9899
|
+
* @param {GptV2Request} gptV2Request
|
|
9900
|
+
* @param {*} [options] Override http request option.
|
|
9901
|
+
* @throws {RequiredError}
|
|
9902
|
+
*/
|
|
9903
|
+
operationsControllerRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV2Response>;
|
|
9332
9904
|
/**
|
|
9333
9905
|
*
|
|
9334
9906
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -9555,6 +10127,14 @@ export declare class OperationsApi extends BaseAPI {
|
|
|
9555
10127
|
* @memberof OperationsApi
|
|
9556
10128
|
*/
|
|
9557
10129
|
operationsControllerRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV1Response, any>>;
|
|
10130
|
+
/**
|
|
10131
|
+
*
|
|
10132
|
+
* @param {GptV2Request} gptV2Request
|
|
10133
|
+
* @param {*} [options] Override http request option.
|
|
10134
|
+
* @throws {RequiredError}
|
|
10135
|
+
* @memberof OperationsApi
|
|
10136
|
+
*/
|
|
10137
|
+
operationsControllerRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV2Response, any>>;
|
|
9558
10138
|
/**
|
|
9559
10139
|
*
|
|
9560
10140
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -131,6 +131,48 @@ export const GPTV1InputModelEnum = {
|
|
|
131
131
|
_4o: 'gpt-4o',
|
|
132
132
|
_41Mini: 'gpt-4.1-mini'
|
|
133
133
|
};
|
|
134
|
+
export const GPTV2AssistantMessageDtoRoleEnum = {
|
|
135
|
+
Assistant: 'assistant'
|
|
136
|
+
};
|
|
137
|
+
export const GPTV2DeveloperMessageDtoRoleEnum = {
|
|
138
|
+
Developer: 'developer'
|
|
139
|
+
};
|
|
140
|
+
export const GPTV2InputModelEnum = {
|
|
141
|
+
Gpt4o: 'gpt-4o',
|
|
142
|
+
O3: 'o3',
|
|
143
|
+
O3Mini: 'o3-mini',
|
|
144
|
+
Gpt41: 'gpt-4.1',
|
|
145
|
+
Gpt41Mini: 'gpt-4.1-mini',
|
|
146
|
+
Gpt41Nano: 'gpt-4.1-nano'
|
|
147
|
+
};
|
|
148
|
+
export const GPTV2MessageToolCallDtoTypeEnum = {
|
|
149
|
+
Function: 'function'
|
|
150
|
+
};
|
|
151
|
+
export const GPTV2ResponseFormatJsonSchemaDtoTypeEnum = {
|
|
152
|
+
JsonSchema: 'json_schema'
|
|
153
|
+
};
|
|
154
|
+
export const GPTV2ResponseFormatTextOrObjectDtoTypeEnum = {
|
|
155
|
+
Text: 'text',
|
|
156
|
+
JsonObject: 'json_object'
|
|
157
|
+
};
|
|
158
|
+
export const GPTV2SystemMessageDtoRoleEnum = {
|
|
159
|
+
System: 'system'
|
|
160
|
+
};
|
|
161
|
+
export const GPTV2ToolChoiceDtoTypeEnum = {
|
|
162
|
+
None: 'none',
|
|
163
|
+
Auto: 'auto',
|
|
164
|
+
Required: 'required',
|
|
165
|
+
Function: 'function'
|
|
166
|
+
};
|
|
167
|
+
export const GPTV2ToolDtoTypeEnum = {
|
|
168
|
+
Function: 'function'
|
|
169
|
+
};
|
|
170
|
+
export const GPTV2ToolMessageDtoRoleEnum = {
|
|
171
|
+
Tool: 'tool'
|
|
172
|
+
};
|
|
173
|
+
export const GPTV2UserMessageDtoRoleEnum = {
|
|
174
|
+
User: 'user'
|
|
175
|
+
};
|
|
134
176
|
export const GetImageRepresentationParamsDtoTypeEnum = {
|
|
135
177
|
SamV1: 'sam.v1'
|
|
136
178
|
};
|
|
@@ -147,6 +189,14 @@ export const GptV1ResponseStatusEnum = {
|
|
|
147
189
|
Finished: 'finished',
|
|
148
190
|
Failed: 'failed'
|
|
149
191
|
};
|
|
192
|
+
export const GptV2ResponseKindEnum = {
|
|
193
|
+
Operation: 'operation'
|
|
194
|
+
};
|
|
195
|
+
export const GptV2ResponseStatusEnum = {
|
|
196
|
+
Pending: 'pending',
|
|
197
|
+
Finished: 'finished',
|
|
198
|
+
Failed: 'failed'
|
|
199
|
+
};
|
|
150
200
|
export const GrantAccessControllerParamsPrincipalTypeEnum = {
|
|
151
201
|
Account: 'account',
|
|
152
202
|
Group: 'group'
|
|
@@ -2619,6 +2669,38 @@ export const CallApiAxiosParamCreator = function (configuration) {
|
|
|
2619
2669
|
options: localVarRequestOptions,
|
|
2620
2670
|
};
|
|
2621
2671
|
},
|
|
2672
|
+
/**
|
|
2673
|
+
*
|
|
2674
|
+
* @param {GptV2Request} gptV2Request
|
|
2675
|
+
* @param {*} [options] Override http request option.
|
|
2676
|
+
* @throws {RequiredError}
|
|
2677
|
+
*/
|
|
2678
|
+
callControllerCallOperationsRunGptV2V1: async (gptV2Request, options = {}) => {
|
|
2679
|
+
// verify required parameter 'gptV2Request' is not null or undefined
|
|
2680
|
+
assertParamExists('callControllerCallOperationsRunGptV2V1', 'gptV2Request', gptV2Request);
|
|
2681
|
+
const localVarPath = `/v1/call/operations.run.gpt.v2`;
|
|
2682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2683
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2684
|
+
let baseOptions;
|
|
2685
|
+
if (configuration) {
|
|
2686
|
+
baseOptions = configuration.baseOptions;
|
|
2687
|
+
}
|
|
2688
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2689
|
+
const localVarHeaderParameter = {};
|
|
2690
|
+
const localVarQueryParameter = {};
|
|
2691
|
+
// authentication bearer required
|
|
2692
|
+
// http bearer authentication required
|
|
2693
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2694
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2695
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2696
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2697
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2698
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gptV2Request, localVarRequestOptions, configuration);
|
|
2699
|
+
return {
|
|
2700
|
+
url: toPathString(localVarUrlObj),
|
|
2701
|
+
options: localVarRequestOptions,
|
|
2702
|
+
};
|
|
2703
|
+
},
|
|
2622
2704
|
/**
|
|
2623
2705
|
*
|
|
2624
2706
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -4128,6 +4210,18 @@ export const CallApiFp = function (configuration) {
|
|
|
4128
4210
|
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunGptV1V1']?.[localVarOperationServerIndex]?.url;
|
|
4129
4211
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4130
4212
|
},
|
|
4213
|
+
/**
|
|
4214
|
+
*
|
|
4215
|
+
* @param {GptV2Request} gptV2Request
|
|
4216
|
+
* @param {*} [options] Override http request option.
|
|
4217
|
+
* @throws {RequiredError}
|
|
4218
|
+
*/
|
|
4219
|
+
async callControllerCallOperationsRunGptV2V1(gptV2Request, options) {
|
|
4220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallOperationsRunGptV2V1(gptV2Request, options);
|
|
4221
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4222
|
+
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunGptV2V1']?.[localVarOperationServerIndex]?.url;
|
|
4223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4224
|
+
},
|
|
4131
4225
|
/**
|
|
4132
4226
|
*
|
|
4133
4227
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -4866,6 +4960,15 @@ export const CallApiFactory = function (configuration, basePath, axios) {
|
|
|
4866
4960
|
callControllerCallOperationsRunGptV1V1(gptV1Request, options) {
|
|
4867
4961
|
return localVarFp.callControllerCallOperationsRunGptV1V1(gptV1Request, options).then((request) => request(axios, basePath));
|
|
4868
4962
|
},
|
|
4963
|
+
/**
|
|
4964
|
+
*
|
|
4965
|
+
* @param {GptV2Request} gptV2Request
|
|
4966
|
+
* @param {*} [options] Override http request option.
|
|
4967
|
+
* @throws {RequiredError}
|
|
4968
|
+
*/
|
|
4969
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request, options) {
|
|
4970
|
+
return localVarFp.callControllerCallOperationsRunGptV2V1(gptV2Request, options).then((request) => request(axios, basePath));
|
|
4971
|
+
},
|
|
4869
4972
|
/**
|
|
4870
4973
|
*
|
|
4871
4974
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -5542,6 +5645,16 @@ export class CallApi extends BaseAPI {
|
|
|
5542
5645
|
callControllerCallOperationsRunGptV1V1(gptV1Request, options) {
|
|
5543
5646
|
return CallApiFp(this.configuration).callControllerCallOperationsRunGptV1V1(gptV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
5544
5647
|
}
|
|
5648
|
+
/**
|
|
5649
|
+
*
|
|
5650
|
+
* @param {GptV2Request} gptV2Request
|
|
5651
|
+
* @param {*} [options] Override http request option.
|
|
5652
|
+
* @throws {RequiredError}
|
|
5653
|
+
* @memberof CallApi
|
|
5654
|
+
*/
|
|
5655
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request, options) {
|
|
5656
|
+
return CallApiFp(this.configuration).callControllerCallOperationsRunGptV2V1(gptV2Request, options).then((request) => request(this.axios, this.basePath));
|
|
5657
|
+
}
|
|
5545
5658
|
/**
|
|
5546
5659
|
*
|
|
5547
5660
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -7534,6 +7647,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
7534
7647
|
options: localVarRequestOptions,
|
|
7535
7648
|
};
|
|
7536
7649
|
},
|
|
7650
|
+
/**
|
|
7651
|
+
*
|
|
7652
|
+
* @param {GptV2Request} gptV2Request
|
|
7653
|
+
* @param {*} [options] Override http request option.
|
|
7654
|
+
* @throws {RequiredError}
|
|
7655
|
+
*/
|
|
7656
|
+
operationsControllerRunGptV2V1: async (gptV2Request, options = {}) => {
|
|
7657
|
+
// verify required parameter 'gptV2Request' is not null or undefined
|
|
7658
|
+
assertParamExists('operationsControllerRunGptV2V1', 'gptV2Request', gptV2Request);
|
|
7659
|
+
const localVarPath = `/v1/operations/run/gpt.v2`;
|
|
7660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7662
|
+
let baseOptions;
|
|
7663
|
+
if (configuration) {
|
|
7664
|
+
baseOptions = configuration.baseOptions;
|
|
7665
|
+
}
|
|
7666
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7667
|
+
const localVarHeaderParameter = {};
|
|
7668
|
+
const localVarQueryParameter = {};
|
|
7669
|
+
// authentication bearer required
|
|
7670
|
+
// http bearer authentication required
|
|
7671
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7672
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7675
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7676
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gptV2Request, localVarRequestOptions, configuration);
|
|
7677
|
+
return {
|
|
7678
|
+
url: toPathString(localVarUrlObj),
|
|
7679
|
+
options: localVarRequestOptions,
|
|
7680
|
+
};
|
|
7681
|
+
},
|
|
7537
7682
|
/**
|
|
7538
7683
|
*
|
|
7539
7684
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8237,6 +8382,18 @@ export const OperationsApiFp = function (configuration) {
|
|
|
8237
8382
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGptV1V1']?.[localVarOperationServerIndex]?.url;
|
|
8238
8383
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8239
8384
|
},
|
|
8385
|
+
/**
|
|
8386
|
+
*
|
|
8387
|
+
* @param {GptV2Request} gptV2Request
|
|
8388
|
+
* @param {*} [options] Override http request option.
|
|
8389
|
+
* @throws {RequiredError}
|
|
8390
|
+
*/
|
|
8391
|
+
async operationsControllerRunGptV2V1(gptV2Request, options) {
|
|
8392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunGptV2V1(gptV2Request, options);
|
|
8393
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8394
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGptV2V1']?.[localVarOperationServerIndex]?.url;
|
|
8395
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8396
|
+
},
|
|
8240
8397
|
/**
|
|
8241
8398
|
*
|
|
8242
8399
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8561,6 +8718,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
8561
8718
|
operationsControllerRunGptV1V1(gptV1Request, options) {
|
|
8562
8719
|
return localVarFp.operationsControllerRunGptV1V1(gptV1Request, options).then((request) => request(axios, basePath));
|
|
8563
8720
|
},
|
|
8721
|
+
/**
|
|
8722
|
+
*
|
|
8723
|
+
* @param {GptV2Request} gptV2Request
|
|
8724
|
+
* @param {*} [options] Override http request option.
|
|
8725
|
+
* @throws {RequiredError}
|
|
8726
|
+
*/
|
|
8727
|
+
operationsControllerRunGptV2V1(gptV2Request, options) {
|
|
8728
|
+
return localVarFp.operationsControllerRunGptV2V1(gptV2Request, options).then((request) => request(axios, basePath));
|
|
8729
|
+
},
|
|
8564
8730
|
/**
|
|
8565
8731
|
*
|
|
8566
8732
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8846,6 +9012,16 @@ export class OperationsApi extends BaseAPI {
|
|
|
8846
9012
|
operationsControllerRunGptV1V1(gptV1Request, options) {
|
|
8847
9013
|
return OperationsApiFp(this.configuration).operationsControllerRunGptV1V1(gptV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
8848
9014
|
}
|
|
9015
|
+
/**
|
|
9016
|
+
*
|
|
9017
|
+
* @param {GptV2Request} gptV2Request
|
|
9018
|
+
* @param {*} [options] Override http request option.
|
|
9019
|
+
* @throws {RequiredError}
|
|
9020
|
+
* @memberof OperationsApi
|
|
9021
|
+
*/
|
|
9022
|
+
operationsControllerRunGptV2V1(gptV2Request, options) {
|
|
9023
|
+
return OperationsApiFp(this.configuration).operationsControllerRunGptV2V1(gptV2Request, options).then((request) => request(this.axios, this.basePath));
|
|
9024
|
+
}
|
|
8849
9025
|
/**
|
|
8850
9026
|
*
|
|
8851
9027
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -167,6 +167,10 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
167
167
|
input: import("../autogenerated").GPTV1Input;
|
|
168
168
|
metadata?: any;
|
|
169
169
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
170
|
+
v2: (props: {
|
|
171
|
+
input: import("../autogenerated").GPTV2Input;
|
|
172
|
+
metadata?: any;
|
|
173
|
+
}) => Promise<import("../autogenerated").GptV2Response>;
|
|
170
174
|
};
|
|
171
175
|
math: {
|
|
172
176
|
v1: (props: {
|
|
@@ -458,6 +462,9 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
458
462
|
v1: (params: import("../autogenerated").GptV1Request & {
|
|
459
463
|
__taskOutput__?: never;
|
|
460
464
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
465
|
+
v2: (params: import("../autogenerated").GptV2Request & {
|
|
466
|
+
__taskOutput__?: never;
|
|
467
|
+
}) => Promise<import("../autogenerated").GptV2Response>;
|
|
461
468
|
};
|
|
462
469
|
math: {
|
|
463
470
|
v1: (params: import("../autogenerated").MathV1Request & {
|
|
@@ -745,6 +752,9 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
745
752
|
v1: (params: import("../autogenerated").GptV1Request & {
|
|
746
753
|
__taskOutput__?: never;
|
|
747
754
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
755
|
+
v2: (params: import("../autogenerated").GptV2Request & {
|
|
756
|
+
__taskOutput__?: never;
|
|
757
|
+
}) => Promise<import("../autogenerated").GptV2Response>;
|
|
748
758
|
};
|
|
749
759
|
math: {
|
|
750
760
|
v1: (params: import("../autogenerated").MathV1Request & {
|
|
@@ -1032,6 +1042,9 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1032
1042
|
v1: (params: import("../autogenerated").GptV1Request & {
|
|
1033
1043
|
__taskOutput__?: never;
|
|
1034
1044
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
1045
|
+
v2: (params: import("../autogenerated").GptV2Request & {
|
|
1046
|
+
__taskOutput__?: never;
|
|
1047
|
+
}) => Promise<import("../autogenerated").GptV2Response>;
|
|
1035
1048
|
};
|
|
1036
1049
|
math: {
|
|
1037
1050
|
v1: (params: import("../autogenerated").MathV1Request & {
|
|
@@ -1322,6 +1335,9 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1322
1335
|
v1: (params: import("../autogenerated").GptV1Request & {
|
|
1323
1336
|
__taskOutput__?: never;
|
|
1324
1337
|
}) => Promise<import("../autogenerated").GptV1Response>;
|
|
1338
|
+
v2: (params: import("../autogenerated").GptV2Request & {
|
|
1339
|
+
__taskOutput__?: never;
|
|
1340
|
+
}) => Promise<import("../autogenerated").GptV2Response>;
|
|
1325
1341
|
};
|
|
1326
1342
|
math: {
|
|
1327
1343
|
v1: (params: import("../autogenerated").MathV1Request & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimateKling16ProV1Input, AnimateKling16ProV1Response, AnimateKling21V1Input, AnimateKling21V1Response, CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, EditFluxKontextDevV1Input, EditFluxKontextDevV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, MathV1Input, MathV1Response, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, NoiseV1Input, NoiseV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, ResizeV1Input, ResizeV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, StringsTemplateV1Input, StringsTemplateV1Response, TranslateV1Input, TranslateV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
1
|
+
import { AnimateKling16ProV1Input, AnimateKling16ProV1Response, AnimateKling21V1Input, AnimateKling21V1Response, CompositeV1Input, CompositeV1Response, ContrastV1Input, ContrastV1Response, CropV1Input, CropV1Response, CutV1Input, CutV1Response, EditFluxKontextDevV1Input, EditFluxKontextDevV1Response, GiseleVtonV1Input, GPTV1Input, GptV1Response, GPTV2Input, GptV2Response, HauteLindaV1Response, HauteNaomiV1Response, ImagineKateV1Response, KateImagineV1Input, KateInpaintV1Input, LindaHauteV1Input, MathV1Input, MathV1Response, NaomiHauteV1Input, NegateImageV1Input, NegateImageV1Response, NoiseV1Input, NoiseV1Response, ObjectDetectionV1Input, ObjectDetectionV1Response, OperationEntity, OperationEntityStatusEnum, PoseEstimationV1Input, PoseEstimationV1Response, ResizeV1Input, ResizeV1Response, SegmentAnythingEmbeddingsV1Input, SegmentAnythingEmbeddingsV1Response, SegmentAnythingMaskV1Input, SegmentAnythingMaskV1Response, StringsTemplateV1Input, StringsTemplateV1Response, TranslateV1Input, TranslateV1Response, UpscaleV1Input, UpscaleV1Response, VtonGiseleV1Response } from '../../autogenerated';
|
|
2
2
|
import { ListProps, ListResponse, SDKOptions } from '../../types';
|
|
3
3
|
import { OperationMetadata } from '../index';
|
|
4
4
|
import { OperationsListener } from '../listeners';
|
|
@@ -65,6 +65,10 @@ declare const operations: (options: SDKOptions, operationsListener: OperationsLi
|
|
|
65
65
|
input: GPTV1Input;
|
|
66
66
|
metadata?: any;
|
|
67
67
|
}) => Promise<GptV1Response>;
|
|
68
|
+
v2: (props: {
|
|
69
|
+
input: GPTV2Input;
|
|
70
|
+
metadata?: any;
|
|
71
|
+
}) => Promise<GptV2Response>;
|
|
68
72
|
};
|
|
69
73
|
math: {
|
|
70
74
|
v1: (props: {
|
|
@@ -35,6 +35,7 @@ const operations = (options, operationsListener) => {
|
|
|
35
35
|
},
|
|
36
36
|
gpt: {
|
|
37
37
|
v1: createOperation((methods, props) => methods.operationsControllerRunGptV1V1(props)),
|
|
38
|
+
v2: createOperation((methods, props) => methods.operationsControllerRunGptV2V1(props)),
|
|
38
39
|
},
|
|
39
40
|
math: {
|
|
40
41
|
v1: createOperation((methods, props) => methods.operationsControllerRunMathV1V1(props)),
|
|
@@ -150,6 +150,9 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
150
150
|
v1: (params: import("../../autogenerated").GptV1Request & {
|
|
151
151
|
__taskOutput__?: never;
|
|
152
152
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
153
|
+
v2: (params: import("../../autogenerated").GptV2Request & {
|
|
154
|
+
__taskOutput__?: never;
|
|
155
|
+
}) => Promise<import("../../autogenerated").GptV2Response>;
|
|
153
156
|
};
|
|
154
157
|
math: {
|
|
155
158
|
v1: (params: import("../../autogenerated").MathV1Request & {
|
|
@@ -437,6 +440,9 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
437
440
|
v1: (params: import("../../autogenerated").GptV1Request & {
|
|
438
441
|
__taskOutput__?: never;
|
|
439
442
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
443
|
+
v2: (params: import("../../autogenerated").GptV2Request & {
|
|
444
|
+
__taskOutput__?: never;
|
|
445
|
+
}) => Promise<import("../../autogenerated").GptV2Response>;
|
|
440
446
|
};
|
|
441
447
|
math: {
|
|
442
448
|
v1: (params: import("../../autogenerated").MathV1Request & {
|
|
@@ -724,6 +730,9 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
724
730
|
v1: (params: import("../../autogenerated").GptV1Request & {
|
|
725
731
|
__taskOutput__?: never;
|
|
726
732
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
733
|
+
v2: (params: import("../../autogenerated").GptV2Request & {
|
|
734
|
+
__taskOutput__?: never;
|
|
735
|
+
}) => Promise<import("../../autogenerated").GptV2Response>;
|
|
727
736
|
};
|
|
728
737
|
math: {
|
|
729
738
|
v1: (params: import("../../autogenerated").MathV1Request & {
|
|
@@ -1014,6 +1023,9 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
1014
1023
|
v1: (params: import("../../autogenerated").GptV1Request & {
|
|
1015
1024
|
__taskOutput__?: never;
|
|
1016
1025
|
}) => Promise<import("../../autogenerated").GptV1Response>;
|
|
1026
|
+
v2: (params: import("../../autogenerated").GptV2Request & {
|
|
1027
|
+
__taskOutput__?: never;
|
|
1028
|
+
}) => Promise<import("../../autogenerated").GptV2Response>;
|
|
1017
1029
|
};
|
|
1018
1030
|
math: {
|
|
1019
1031
|
v1: (params: import("../../autogenerated").MathV1Request & {
|
|
@@ -86,6 +86,7 @@ const pipelines = (options) => {
|
|
|
86
86
|
},
|
|
87
87
|
gpt: {
|
|
88
88
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunGptV1V1),
|
|
89
|
+
v2: callMethod((methods) => methods.callControllerCallOperationsRunGptV2V1),
|
|
89
90
|
},
|
|
90
91
|
math: {
|
|
91
92
|
v1: callMethod((methods) => methods.callControllerCallOperationsRunMathV1V1),
|