@hautechai/sdk 0.3.45 → 0.3.46
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 +547 -0
- package/dist/autogenerated/api.js +169 -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,399 @@ 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 GPTV2Input
|
|
1592
|
+
*/
|
|
1593
|
+
export interface GPTV2Input {
|
|
1594
|
+
/**
|
|
1595
|
+
* ID of the model to use. See OpenAI docs for model endpoint compatibility.
|
|
1596
|
+
* @type {string}
|
|
1597
|
+
* @memberof GPTV2Input
|
|
1598
|
+
*/
|
|
1599
|
+
'model'?: GPTV2InputModelEnum;
|
|
1600
|
+
/**
|
|
1601
|
+
* A list of messages comprising the conversation so far. Each message must be one of: system, user, assistant, or tool message DTO.
|
|
1602
|
+
* @type {Array<GPTV2InputMessagesInner>}
|
|
1603
|
+
* @memberof GPTV2Input
|
|
1604
|
+
*/
|
|
1605
|
+
'messages': Array<GPTV2InputMessagesInner>;
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @type {GPTV2InputResponseFormat}
|
|
1609
|
+
* @memberof GPTV2Input
|
|
1610
|
+
*/
|
|
1611
|
+
'response_format'?: GPTV2InputResponseFormat;
|
|
1612
|
+
/**
|
|
1613
|
+
* 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.
|
|
1614
|
+
* @type {number}
|
|
1615
|
+
* @memberof GPTV2Input
|
|
1616
|
+
*/
|
|
1617
|
+
'seed'?: number;
|
|
1618
|
+
/**
|
|
1619
|
+
* A list of tools the model may call. Currently, only functions are supported as a tool.
|
|
1620
|
+
* @type {Array<GPTV2ToolDto>}
|
|
1621
|
+
* @memberof GPTV2Input
|
|
1622
|
+
*/
|
|
1623
|
+
'tools'?: Array<GPTV2ToolDto>;
|
|
1624
|
+
/**
|
|
1625
|
+
* Controls which (if any) tool is called by the model. \'none\', \'auto\', \'required\', or a specific function tool.
|
|
1626
|
+
* @type {GPTV2ToolChoiceDto}
|
|
1627
|
+
* @memberof GPTV2Input
|
|
1628
|
+
*/
|
|
1629
|
+
'tool_choice'?: GPTV2ToolChoiceDto;
|
|
1630
|
+
/**
|
|
1631
|
+
*
|
|
1632
|
+
* @type {GPTV2ResponseFormatTextOrObjectDto}
|
|
1633
|
+
* @memberof GPTV2Input
|
|
1634
|
+
*/
|
|
1635
|
+
'response_format_text_or_object'?: GPTV2ResponseFormatTextOrObjectDto;
|
|
1636
|
+
/**
|
|
1637
|
+
*
|
|
1638
|
+
* @type {number}
|
|
1639
|
+
* @memberof GPTV2Input
|
|
1640
|
+
*/
|
|
1641
|
+
'max_completion_tokens'?: number;
|
|
1642
|
+
}
|
|
1643
|
+
export declare const GPTV2InputModelEnum: {
|
|
1644
|
+
readonly _4o: "gpt-4o";
|
|
1645
|
+
readonly _41Mini: "gpt-4.1-mini";
|
|
1646
|
+
};
|
|
1647
|
+
export type GPTV2InputModelEnum = typeof GPTV2InputModelEnum[keyof typeof GPTV2InputModelEnum];
|
|
1648
|
+
/**
|
|
1649
|
+
* @type GPTV2InputMessagesInner
|
|
1650
|
+
* @export
|
|
1651
|
+
*/
|
|
1652
|
+
export type GPTV2InputMessagesInner = GPTV2AssistantMessageDto | GPTV2SystemMessageDto | GPTV2ToolMessageDto | GPTV2UserMessageDto;
|
|
1653
|
+
/**
|
|
1654
|
+
* @type GPTV2InputResponseFormat
|
|
1655
|
+
* The response format for the model output. See OpenAI docs for details.
|
|
1656
|
+
* @export
|
|
1657
|
+
*/
|
|
1658
|
+
export type GPTV2InputResponseFormat = GPTV2ResponseFormatJsonSchemaDto | GPTV2ResponseFormatTextOrObjectDto;
|
|
1659
|
+
/**
|
|
1660
|
+
*
|
|
1661
|
+
* @export
|
|
1662
|
+
* @interface GPTV2MessageToolCallDto
|
|
1663
|
+
*/
|
|
1664
|
+
export interface GPTV2MessageToolCallDto {
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @type {string}
|
|
1668
|
+
* @memberof GPTV2MessageToolCallDto
|
|
1669
|
+
*/
|
|
1670
|
+
'id': string;
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @type {object}
|
|
1674
|
+
* @memberof GPTV2MessageToolCallDto
|
|
1675
|
+
*/
|
|
1676
|
+
'function': object;
|
|
1677
|
+
/**
|
|
1678
|
+
*
|
|
1679
|
+
* @type {string}
|
|
1680
|
+
* @memberof GPTV2MessageToolCallDto
|
|
1681
|
+
*/
|
|
1682
|
+
'type': GPTV2MessageToolCallDtoTypeEnum;
|
|
1683
|
+
}
|
|
1684
|
+
export declare const GPTV2MessageToolCallDtoTypeEnum: {
|
|
1685
|
+
readonly Function: "function";
|
|
1686
|
+
};
|
|
1687
|
+
export type GPTV2MessageToolCallDtoTypeEnum = typeof GPTV2MessageToolCallDtoTypeEnum[keyof typeof GPTV2MessageToolCallDtoTypeEnum];
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @export
|
|
1691
|
+
* @interface GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1692
|
+
*/
|
|
1693
|
+
export interface GPTV2ResponseFormatJsonSchemaDetailsDto {
|
|
1694
|
+
/**
|
|
1695
|
+
* 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.
|
|
1696
|
+
* @type {string}
|
|
1697
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1698
|
+
*/
|
|
1699
|
+
'name': string;
|
|
1700
|
+
/**
|
|
1701
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
1702
|
+
* @type {string}
|
|
1703
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1704
|
+
*/
|
|
1705
|
+
'description'?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
1708
|
+
* @type {object}
|
|
1709
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1710
|
+
*/
|
|
1711
|
+
'schema'?: object;
|
|
1712
|
+
/**
|
|
1713
|
+
* 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`.
|
|
1714
|
+
* @type {boolean}
|
|
1715
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDetailsDto
|
|
1716
|
+
*/
|
|
1717
|
+
'strict'?: boolean | null;
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @export
|
|
1722
|
+
* @interface GPTV2ResponseFormatJsonSchemaDto
|
|
1723
|
+
*/
|
|
1724
|
+
export interface GPTV2ResponseFormatJsonSchemaDto {
|
|
1725
|
+
/**
|
|
1726
|
+
* The type of response format being defined: json_schema.
|
|
1727
|
+
* @type {string}
|
|
1728
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDto
|
|
1729
|
+
*/
|
|
1730
|
+
'type': GPTV2ResponseFormatJsonSchemaDtoTypeEnum;
|
|
1731
|
+
/**
|
|
1732
|
+
* The JSON schema definition for the response format. Required for type json_schema.
|
|
1733
|
+
* @type {GPTV2ResponseFormatJsonSchemaDetailsDto}
|
|
1734
|
+
* @memberof GPTV2ResponseFormatJsonSchemaDto
|
|
1735
|
+
*/
|
|
1736
|
+
'json_schema': GPTV2ResponseFormatJsonSchemaDetailsDto;
|
|
1737
|
+
}
|
|
1738
|
+
export declare const GPTV2ResponseFormatJsonSchemaDtoTypeEnum: {
|
|
1739
|
+
readonly JsonSchema: "json_schema";
|
|
1740
|
+
};
|
|
1741
|
+
export type GPTV2ResponseFormatJsonSchemaDtoTypeEnum = typeof GPTV2ResponseFormatJsonSchemaDtoTypeEnum[keyof typeof GPTV2ResponseFormatJsonSchemaDtoTypeEnum];
|
|
1742
|
+
/**
|
|
1743
|
+
*
|
|
1744
|
+
* @export
|
|
1745
|
+
* @interface GPTV2ResponseFormatTextOrObjectDto
|
|
1746
|
+
*/
|
|
1747
|
+
export interface GPTV2ResponseFormatTextOrObjectDto {
|
|
1748
|
+
/**
|
|
1749
|
+
* The type of response format being defined: \'text\' or \'json_object\'.
|
|
1750
|
+
* @type {object}
|
|
1751
|
+
* @memberof GPTV2ResponseFormatTextOrObjectDto
|
|
1752
|
+
*/
|
|
1753
|
+
'type': GPTV2ResponseFormatTextOrObjectDtoTypeEnum;
|
|
1754
|
+
}
|
|
1755
|
+
export declare const GPTV2ResponseFormatTextOrObjectDtoTypeEnum: {
|
|
1756
|
+
readonly Text: "text";
|
|
1757
|
+
readonly JsonObject: "json_object";
|
|
1758
|
+
};
|
|
1759
|
+
export type GPTV2ResponseFormatTextOrObjectDtoTypeEnum = typeof GPTV2ResponseFormatTextOrObjectDtoTypeEnum[keyof typeof GPTV2ResponseFormatTextOrObjectDtoTypeEnum];
|
|
1760
|
+
/**
|
|
1761
|
+
*
|
|
1762
|
+
* @export
|
|
1763
|
+
* @interface GPTV2SystemMessageDto
|
|
1764
|
+
*/
|
|
1765
|
+
export interface GPTV2SystemMessageDto {
|
|
1766
|
+
/**
|
|
1767
|
+
* The content of the system message.
|
|
1768
|
+
* @type {string}
|
|
1769
|
+
* @memberof GPTV2SystemMessageDto
|
|
1770
|
+
*/
|
|
1771
|
+
'content': string;
|
|
1772
|
+
/**
|
|
1773
|
+
* The role of the message sender.
|
|
1774
|
+
* @type {string}
|
|
1775
|
+
* @memberof GPTV2SystemMessageDto
|
|
1776
|
+
*/
|
|
1777
|
+
'role': GPTV2SystemMessageDtoRoleEnum;
|
|
1778
|
+
/**
|
|
1779
|
+
* The name of the sender, if applicable.
|
|
1780
|
+
* @type {string}
|
|
1781
|
+
* @memberof GPTV2SystemMessageDto
|
|
1782
|
+
*/
|
|
1783
|
+
'name'?: string;
|
|
1784
|
+
}
|
|
1785
|
+
export declare const GPTV2SystemMessageDtoRoleEnum: {
|
|
1786
|
+
readonly System: "system";
|
|
1787
|
+
};
|
|
1788
|
+
export type GPTV2SystemMessageDtoRoleEnum = typeof GPTV2SystemMessageDtoRoleEnum[keyof typeof GPTV2SystemMessageDtoRoleEnum];
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @export
|
|
1792
|
+
* @interface GPTV2ToolChoiceDto
|
|
1793
|
+
*/
|
|
1794
|
+
export interface GPTV2ToolChoiceDto {
|
|
1795
|
+
/**
|
|
1796
|
+
* Controls which (if any) tool is called by the model. \'none\', \'auto\', \'required\', or a specific function tool.
|
|
1797
|
+
* @type {object}
|
|
1798
|
+
* @memberof GPTV2ToolChoiceDto
|
|
1799
|
+
*/
|
|
1800
|
+
'type': GPTV2ToolChoiceDtoTypeEnum;
|
|
1801
|
+
/**
|
|
1802
|
+
* The function to call, if type is `function`.
|
|
1803
|
+
* @type {GPTV2ToolChoiceFunctionDto}
|
|
1804
|
+
* @memberof GPTV2ToolChoiceDto
|
|
1805
|
+
*/
|
|
1806
|
+
'function'?: GPTV2ToolChoiceFunctionDto;
|
|
1807
|
+
}
|
|
1808
|
+
export declare const GPTV2ToolChoiceDtoTypeEnum: {
|
|
1809
|
+
readonly None: "none";
|
|
1810
|
+
readonly Auto: "auto";
|
|
1811
|
+
readonly Required: "required";
|
|
1812
|
+
readonly Function: "function";
|
|
1813
|
+
};
|
|
1814
|
+
export type GPTV2ToolChoiceDtoTypeEnum = typeof GPTV2ToolChoiceDtoTypeEnum[keyof typeof GPTV2ToolChoiceDtoTypeEnum];
|
|
1815
|
+
/**
|
|
1816
|
+
*
|
|
1817
|
+
* @export
|
|
1818
|
+
* @interface GPTV2ToolChoiceFunctionDto
|
|
1819
|
+
*/
|
|
1820
|
+
export interface GPTV2ToolChoiceFunctionDto {
|
|
1821
|
+
/**
|
|
1822
|
+
* The name of the function to call.
|
|
1823
|
+
* @type {string}
|
|
1824
|
+
* @memberof GPTV2ToolChoiceFunctionDto
|
|
1825
|
+
*/
|
|
1826
|
+
'name': string;
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
*
|
|
1830
|
+
* @export
|
|
1831
|
+
* @interface GPTV2ToolDto
|
|
1832
|
+
*/
|
|
1833
|
+
export interface GPTV2ToolDto {
|
|
1834
|
+
/**
|
|
1835
|
+
* The function definition for the tool. Currently, only functions are supported.
|
|
1836
|
+
* @type {GPTV2ToolFunctionDto}
|
|
1837
|
+
* @memberof GPTV2ToolDto
|
|
1838
|
+
*/
|
|
1839
|
+
'function': GPTV2ToolFunctionDto;
|
|
1840
|
+
/**
|
|
1841
|
+
* The type of the tool. Currently, only \'function\' is supported.
|
|
1842
|
+
* @type {string}
|
|
1843
|
+
* @memberof GPTV2ToolDto
|
|
1844
|
+
*/
|
|
1845
|
+
'type': GPTV2ToolDtoTypeEnum;
|
|
1846
|
+
}
|
|
1847
|
+
export declare const GPTV2ToolDtoTypeEnum: {
|
|
1848
|
+
readonly Function: "function";
|
|
1849
|
+
};
|
|
1850
|
+
export type GPTV2ToolDtoTypeEnum = typeof GPTV2ToolDtoTypeEnum[keyof typeof GPTV2ToolDtoTypeEnum];
|
|
1851
|
+
/**
|
|
1852
|
+
*
|
|
1853
|
+
* @export
|
|
1854
|
+
* @interface GPTV2ToolFunctionDto
|
|
1855
|
+
*/
|
|
1856
|
+
export interface GPTV2ToolFunctionDto {
|
|
1857
|
+
/**
|
|
1858
|
+
* 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.
|
|
1859
|
+
* @type {string}
|
|
1860
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1861
|
+
*/
|
|
1862
|
+
'name': string;
|
|
1863
|
+
/**
|
|
1864
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
1865
|
+
* @type {string}
|
|
1866
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1867
|
+
*/
|
|
1868
|
+
'description'?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* The parameters the functions accepts, described as a JSON Schema object.
|
|
1871
|
+
* @type {object}
|
|
1872
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1873
|
+
*/
|
|
1874
|
+
'parameters'?: object;
|
|
1875
|
+
/**
|
|
1876
|
+
* Whether to enable strict schema adherence when generating the function call.
|
|
1877
|
+
* @type {boolean}
|
|
1878
|
+
* @memberof GPTV2ToolFunctionDto
|
|
1879
|
+
*/
|
|
1880
|
+
'strict'?: boolean | null;
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
*
|
|
1884
|
+
* @export
|
|
1885
|
+
* @interface GPTV2ToolMessageDto
|
|
1886
|
+
*/
|
|
1887
|
+
export interface GPTV2ToolMessageDto {
|
|
1888
|
+
/**
|
|
1889
|
+
* The content of the tool message.
|
|
1890
|
+
* @type {string}
|
|
1891
|
+
* @memberof GPTV2ToolMessageDto
|
|
1892
|
+
*/
|
|
1893
|
+
'content': string;
|
|
1894
|
+
/**
|
|
1895
|
+
* The role of the message sender.
|
|
1896
|
+
* @type {string}
|
|
1897
|
+
* @memberof GPTV2ToolMessageDto
|
|
1898
|
+
*/
|
|
1899
|
+
'role': GPTV2ToolMessageDtoRoleEnum;
|
|
1900
|
+
/**
|
|
1901
|
+
* The ID of the tool call.
|
|
1902
|
+
* @type {string}
|
|
1903
|
+
* @memberof GPTV2ToolMessageDto
|
|
1904
|
+
*/
|
|
1905
|
+
'tool_call_id': string;
|
|
1906
|
+
}
|
|
1907
|
+
export declare const GPTV2ToolMessageDtoRoleEnum: {
|
|
1908
|
+
readonly Tool: "tool";
|
|
1909
|
+
};
|
|
1910
|
+
export type GPTV2ToolMessageDtoRoleEnum = typeof GPTV2ToolMessageDtoRoleEnum[keyof typeof GPTV2ToolMessageDtoRoleEnum];
|
|
1911
|
+
/**
|
|
1912
|
+
*
|
|
1913
|
+
* @export
|
|
1914
|
+
* @interface GPTV2UserMessageDto
|
|
1915
|
+
*/
|
|
1916
|
+
export interface GPTV2UserMessageDto {
|
|
1917
|
+
/**
|
|
1918
|
+
* The content of the user message.
|
|
1919
|
+
* @type {string}
|
|
1920
|
+
* @memberof GPTV2UserMessageDto
|
|
1921
|
+
*/
|
|
1922
|
+
'content': string;
|
|
1923
|
+
/**
|
|
1924
|
+
* The role of the message sender.
|
|
1925
|
+
* @type {string}
|
|
1926
|
+
* @memberof GPTV2UserMessageDto
|
|
1927
|
+
*/
|
|
1928
|
+
'role': GPTV2UserMessageDtoRoleEnum;
|
|
1929
|
+
/**
|
|
1930
|
+
* The name of the sender, if applicable.
|
|
1931
|
+
* @type {string}
|
|
1932
|
+
* @memberof GPTV2UserMessageDto
|
|
1933
|
+
*/
|
|
1934
|
+
'name'?: string;
|
|
1935
|
+
}
|
|
1936
|
+
export declare const GPTV2UserMessageDtoRoleEnum: {
|
|
1937
|
+
readonly User: "user";
|
|
1938
|
+
};
|
|
1939
|
+
export type GPTV2UserMessageDtoRoleEnum = typeof GPTV2UserMessageDtoRoleEnum[keyof typeof GPTV2UserMessageDtoRoleEnum];
|
|
1547
1940
|
/**
|
|
1548
1941
|
*
|
|
1549
1942
|
* @export
|
|
@@ -1881,6 +2274,102 @@ export declare const GptV1ResponseStatusEnum: {
|
|
|
1881
2274
|
readonly Failed: "failed";
|
|
1882
2275
|
};
|
|
1883
2276
|
export type GptV1ResponseStatusEnum = typeof GptV1ResponseStatusEnum[keyof typeof GptV1ResponseStatusEnum];
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @export
|
|
2280
|
+
* @interface GptV2Request
|
|
2281
|
+
*/
|
|
2282
|
+
export interface GptV2Request {
|
|
2283
|
+
/**
|
|
2284
|
+
*
|
|
2285
|
+
* @type {GPTV2Input}
|
|
2286
|
+
* @memberof GptV2Request
|
|
2287
|
+
*/
|
|
2288
|
+
'input': GPTV2Input;
|
|
2289
|
+
/**
|
|
2290
|
+
*
|
|
2291
|
+
* @type {object}
|
|
2292
|
+
* @memberof GptV2Request
|
|
2293
|
+
*/
|
|
2294
|
+
'metadata'?: object;
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
* @export
|
|
2299
|
+
* @interface GptV2Response
|
|
2300
|
+
*/
|
|
2301
|
+
export interface GptV2Response {
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @type {string}
|
|
2305
|
+
* @memberof GptV2Response
|
|
2306
|
+
*/
|
|
2307
|
+
'kind': GptV2ResponseKindEnum;
|
|
2308
|
+
/**
|
|
2309
|
+
*
|
|
2310
|
+
* @type {OperationOutputJSON}
|
|
2311
|
+
* @memberof GptV2Response
|
|
2312
|
+
*/
|
|
2313
|
+
'output': OperationOutputJSON;
|
|
2314
|
+
/**
|
|
2315
|
+
*
|
|
2316
|
+
* @type {object}
|
|
2317
|
+
* @memberof GptV2Response
|
|
2318
|
+
*/
|
|
2319
|
+
'input': object;
|
|
2320
|
+
/**
|
|
2321
|
+
*
|
|
2322
|
+
* @type {string}
|
|
2323
|
+
* @memberof GptV2Response
|
|
2324
|
+
*/
|
|
2325
|
+
'status': GptV2ResponseStatusEnum;
|
|
2326
|
+
/**
|
|
2327
|
+
*
|
|
2328
|
+
* @type {string}
|
|
2329
|
+
* @memberof GptV2Response
|
|
2330
|
+
*/
|
|
2331
|
+
'type': string;
|
|
2332
|
+
/**
|
|
2333
|
+
*
|
|
2334
|
+
* @type {string}
|
|
2335
|
+
* @memberof GptV2Response
|
|
2336
|
+
*/
|
|
2337
|
+
'id': string;
|
|
2338
|
+
/**
|
|
2339
|
+
*
|
|
2340
|
+
* @type {string}
|
|
2341
|
+
* @memberof GptV2Response
|
|
2342
|
+
*/
|
|
2343
|
+
'creatorId': string;
|
|
2344
|
+
/**
|
|
2345
|
+
*
|
|
2346
|
+
* @type {object}
|
|
2347
|
+
* @memberof GptV2Response
|
|
2348
|
+
*/
|
|
2349
|
+
'metadata': object;
|
|
2350
|
+
/**
|
|
2351
|
+
*
|
|
2352
|
+
* @type {string}
|
|
2353
|
+
* @memberof GptV2Response
|
|
2354
|
+
*/
|
|
2355
|
+
'createdAt': string;
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @type {string}
|
|
2359
|
+
* @memberof GptV2Response
|
|
2360
|
+
*/
|
|
2361
|
+
'updatedAt': string;
|
|
2362
|
+
}
|
|
2363
|
+
export declare const GptV2ResponseKindEnum: {
|
|
2364
|
+
readonly Operation: "operation";
|
|
2365
|
+
};
|
|
2366
|
+
export type GptV2ResponseKindEnum = typeof GptV2ResponseKindEnum[keyof typeof GptV2ResponseKindEnum];
|
|
2367
|
+
export declare const GptV2ResponseStatusEnum: {
|
|
2368
|
+
readonly Pending: "pending";
|
|
2369
|
+
readonly Finished: "finished";
|
|
2370
|
+
readonly Failed: "failed";
|
|
2371
|
+
};
|
|
2372
|
+
export type GptV2ResponseStatusEnum = typeof GptV2ResponseStatusEnum[keyof typeof GptV2ResponseStatusEnum];
|
|
1884
2373
|
/**
|
|
1885
2374
|
*
|
|
1886
2375
|
* @export
|
|
@@ -6377,6 +6866,13 @@ export declare const CallApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6377
6866
|
* @throws {RequiredError}
|
|
6378
6867
|
*/
|
|
6379
6868
|
callControllerCallOperationsRunGptV1V1: (gptV1Request: GptV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6869
|
+
/**
|
|
6870
|
+
*
|
|
6871
|
+
* @param {GptV2Request} gptV2Request
|
|
6872
|
+
* @param {*} [options] Override http request option.
|
|
6873
|
+
* @throws {RequiredError}
|
|
6874
|
+
*/
|
|
6875
|
+
callControllerCallOperationsRunGptV2V1: (gptV2Request: GptV2Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6380
6876
|
/**
|
|
6381
6877
|
*
|
|
6382
6878
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -6873,6 +7369,13 @@ export declare const CallApiFp: (configuration?: Configuration) => {
|
|
|
6873
7369
|
* @throws {RequiredError}
|
|
6874
7370
|
*/
|
|
6875
7371
|
callControllerCallOperationsRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV1Response>>;
|
|
7372
|
+
/**
|
|
7373
|
+
*
|
|
7374
|
+
* @param {GptV2Request} gptV2Request
|
|
7375
|
+
* @param {*} [options] Override http request option.
|
|
7376
|
+
* @throws {RequiredError}
|
|
7377
|
+
*/
|
|
7378
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV2Response>>;
|
|
6876
7379
|
/**
|
|
6877
7380
|
*
|
|
6878
7381
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -7369,6 +7872,13 @@ export declare const CallApiFactory: (configuration?: Configuration, basePath?:
|
|
|
7369
7872
|
* @throws {RequiredError}
|
|
7370
7873
|
*/
|
|
7371
7874
|
callControllerCallOperationsRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV1Response>;
|
|
7875
|
+
/**
|
|
7876
|
+
*
|
|
7877
|
+
* @param {GptV2Request} gptV2Request
|
|
7878
|
+
* @param {*} [options] Override http request option.
|
|
7879
|
+
* @throws {RequiredError}
|
|
7880
|
+
*/
|
|
7881
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV2Response>;
|
|
7372
7882
|
/**
|
|
7373
7883
|
*
|
|
7374
7884
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -7904,6 +8414,14 @@ export declare class CallApi extends BaseAPI {
|
|
|
7904
8414
|
* @memberof CallApi
|
|
7905
8415
|
*/
|
|
7906
8416
|
callControllerCallOperationsRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV1Response, any>>;
|
|
8417
|
+
/**
|
|
8418
|
+
*
|
|
8419
|
+
* @param {GptV2Request} gptV2Request
|
|
8420
|
+
* @param {*} [options] Override http request option.
|
|
8421
|
+
* @throws {RequiredError}
|
|
8422
|
+
* @memberof CallApi
|
|
8423
|
+
*/
|
|
8424
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV2Response, any>>;
|
|
7907
8425
|
/**
|
|
7908
8426
|
*
|
|
7909
8427
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8905,6 +9423,13 @@ export declare const OperationsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
8905
9423
|
* @throws {RequiredError}
|
|
8906
9424
|
*/
|
|
8907
9425
|
operationsControllerRunGptV1V1: (gptV1Request: GptV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9426
|
+
/**
|
|
9427
|
+
*
|
|
9428
|
+
* @param {GptV2Request} gptV2Request
|
|
9429
|
+
* @param {*} [options] Override http request option.
|
|
9430
|
+
* @throws {RequiredError}
|
|
9431
|
+
*/
|
|
9432
|
+
operationsControllerRunGptV2V1: (gptV2Request: GptV2Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8908
9433
|
/**
|
|
8909
9434
|
*
|
|
8910
9435
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -9117,6 +9642,13 @@ export declare const OperationsApiFp: (configuration?: Configuration) => {
|
|
|
9117
9642
|
* @throws {RequiredError}
|
|
9118
9643
|
*/
|
|
9119
9644
|
operationsControllerRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV1Response>>;
|
|
9645
|
+
/**
|
|
9646
|
+
*
|
|
9647
|
+
* @param {GptV2Request} gptV2Request
|
|
9648
|
+
* @param {*} [options] Override http request option.
|
|
9649
|
+
* @throws {RequiredError}
|
|
9650
|
+
*/
|
|
9651
|
+
operationsControllerRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GptV2Response>>;
|
|
9120
9652
|
/**
|
|
9121
9653
|
*
|
|
9122
9654
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -9329,6 +9861,13 @@ export declare const OperationsApiFactory: (configuration?: Configuration, baseP
|
|
|
9329
9861
|
* @throws {RequiredError}
|
|
9330
9862
|
*/
|
|
9331
9863
|
operationsControllerRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV1Response>;
|
|
9864
|
+
/**
|
|
9865
|
+
*
|
|
9866
|
+
* @param {GptV2Request} gptV2Request
|
|
9867
|
+
* @param {*} [options] Override http request option.
|
|
9868
|
+
* @throws {RequiredError}
|
|
9869
|
+
*/
|
|
9870
|
+
operationsControllerRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): AxiosPromise<GptV2Response>;
|
|
9332
9871
|
/**
|
|
9333
9872
|
*
|
|
9334
9873
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -9555,6 +10094,14 @@ export declare class OperationsApi extends BaseAPI {
|
|
|
9555
10094
|
* @memberof OperationsApi
|
|
9556
10095
|
*/
|
|
9557
10096
|
operationsControllerRunGptV1V1(gptV1Request: GptV1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV1Response, any>>;
|
|
10097
|
+
/**
|
|
10098
|
+
*
|
|
10099
|
+
* @param {GptV2Request} gptV2Request
|
|
10100
|
+
* @param {*} [options] Override http request option.
|
|
10101
|
+
* @throws {RequiredError}
|
|
10102
|
+
* @memberof OperationsApi
|
|
10103
|
+
*/
|
|
10104
|
+
operationsControllerRunGptV2V1(gptV2Request: GptV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GptV2Response, any>>;
|
|
9558
10105
|
/**
|
|
9559
10106
|
*
|
|
9560
10107
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -131,6 +131,41 @@ 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 GPTV2InputModelEnum = {
|
|
138
|
+
_4o: 'gpt-4o',
|
|
139
|
+
_41Mini: 'gpt-4.1-mini'
|
|
140
|
+
};
|
|
141
|
+
export const GPTV2MessageToolCallDtoTypeEnum = {
|
|
142
|
+
Function: 'function'
|
|
143
|
+
};
|
|
144
|
+
export const GPTV2ResponseFormatJsonSchemaDtoTypeEnum = {
|
|
145
|
+
JsonSchema: 'json_schema'
|
|
146
|
+
};
|
|
147
|
+
export const GPTV2ResponseFormatTextOrObjectDtoTypeEnum = {
|
|
148
|
+
Text: 'text',
|
|
149
|
+
JsonObject: 'json_object'
|
|
150
|
+
};
|
|
151
|
+
export const GPTV2SystemMessageDtoRoleEnum = {
|
|
152
|
+
System: 'system'
|
|
153
|
+
};
|
|
154
|
+
export const GPTV2ToolChoiceDtoTypeEnum = {
|
|
155
|
+
None: 'none',
|
|
156
|
+
Auto: 'auto',
|
|
157
|
+
Required: 'required',
|
|
158
|
+
Function: 'function'
|
|
159
|
+
};
|
|
160
|
+
export const GPTV2ToolDtoTypeEnum = {
|
|
161
|
+
Function: 'function'
|
|
162
|
+
};
|
|
163
|
+
export const GPTV2ToolMessageDtoRoleEnum = {
|
|
164
|
+
Tool: 'tool'
|
|
165
|
+
};
|
|
166
|
+
export const GPTV2UserMessageDtoRoleEnum = {
|
|
167
|
+
User: 'user'
|
|
168
|
+
};
|
|
134
169
|
export const GetImageRepresentationParamsDtoTypeEnum = {
|
|
135
170
|
SamV1: 'sam.v1'
|
|
136
171
|
};
|
|
@@ -147,6 +182,14 @@ export const GptV1ResponseStatusEnum = {
|
|
|
147
182
|
Finished: 'finished',
|
|
148
183
|
Failed: 'failed'
|
|
149
184
|
};
|
|
185
|
+
export const GptV2ResponseKindEnum = {
|
|
186
|
+
Operation: 'operation'
|
|
187
|
+
};
|
|
188
|
+
export const GptV2ResponseStatusEnum = {
|
|
189
|
+
Pending: 'pending',
|
|
190
|
+
Finished: 'finished',
|
|
191
|
+
Failed: 'failed'
|
|
192
|
+
};
|
|
150
193
|
export const GrantAccessControllerParamsPrincipalTypeEnum = {
|
|
151
194
|
Account: 'account',
|
|
152
195
|
Group: 'group'
|
|
@@ -2619,6 +2662,38 @@ export const CallApiAxiosParamCreator = function (configuration) {
|
|
|
2619
2662
|
options: localVarRequestOptions,
|
|
2620
2663
|
};
|
|
2621
2664
|
},
|
|
2665
|
+
/**
|
|
2666
|
+
*
|
|
2667
|
+
* @param {GptV2Request} gptV2Request
|
|
2668
|
+
* @param {*} [options] Override http request option.
|
|
2669
|
+
* @throws {RequiredError}
|
|
2670
|
+
*/
|
|
2671
|
+
callControllerCallOperationsRunGptV2V1: async (gptV2Request, options = {}) => {
|
|
2672
|
+
// verify required parameter 'gptV2Request' is not null or undefined
|
|
2673
|
+
assertParamExists('callControllerCallOperationsRunGptV2V1', 'gptV2Request', gptV2Request);
|
|
2674
|
+
const localVarPath = `/v1/call/operations.run.gpt.v2`;
|
|
2675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2676
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2677
|
+
let baseOptions;
|
|
2678
|
+
if (configuration) {
|
|
2679
|
+
baseOptions = configuration.baseOptions;
|
|
2680
|
+
}
|
|
2681
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2682
|
+
const localVarHeaderParameter = {};
|
|
2683
|
+
const localVarQueryParameter = {};
|
|
2684
|
+
// authentication bearer required
|
|
2685
|
+
// http bearer authentication required
|
|
2686
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2687
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2688
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2690
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2691
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gptV2Request, localVarRequestOptions, configuration);
|
|
2692
|
+
return {
|
|
2693
|
+
url: toPathString(localVarUrlObj),
|
|
2694
|
+
options: localVarRequestOptions,
|
|
2695
|
+
};
|
|
2696
|
+
},
|
|
2622
2697
|
/**
|
|
2623
2698
|
*
|
|
2624
2699
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -4128,6 +4203,18 @@ export const CallApiFp = function (configuration) {
|
|
|
4128
4203
|
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunGptV1V1']?.[localVarOperationServerIndex]?.url;
|
|
4129
4204
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4130
4205
|
},
|
|
4206
|
+
/**
|
|
4207
|
+
*
|
|
4208
|
+
* @param {GptV2Request} gptV2Request
|
|
4209
|
+
* @param {*} [options] Override http request option.
|
|
4210
|
+
* @throws {RequiredError}
|
|
4211
|
+
*/
|
|
4212
|
+
async callControllerCallOperationsRunGptV2V1(gptV2Request, options) {
|
|
4213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallOperationsRunGptV2V1(gptV2Request, options);
|
|
4214
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4215
|
+
const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallOperationsRunGptV2V1']?.[localVarOperationServerIndex]?.url;
|
|
4216
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4217
|
+
},
|
|
4131
4218
|
/**
|
|
4132
4219
|
*
|
|
4133
4220
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -4866,6 +4953,15 @@ export const CallApiFactory = function (configuration, basePath, axios) {
|
|
|
4866
4953
|
callControllerCallOperationsRunGptV1V1(gptV1Request, options) {
|
|
4867
4954
|
return localVarFp.callControllerCallOperationsRunGptV1V1(gptV1Request, options).then((request) => request(axios, basePath));
|
|
4868
4955
|
},
|
|
4956
|
+
/**
|
|
4957
|
+
*
|
|
4958
|
+
* @param {GptV2Request} gptV2Request
|
|
4959
|
+
* @param {*} [options] Override http request option.
|
|
4960
|
+
* @throws {RequiredError}
|
|
4961
|
+
*/
|
|
4962
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request, options) {
|
|
4963
|
+
return localVarFp.callControllerCallOperationsRunGptV2V1(gptV2Request, options).then((request) => request(axios, basePath));
|
|
4964
|
+
},
|
|
4869
4965
|
/**
|
|
4870
4966
|
*
|
|
4871
4967
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -5542,6 +5638,16 @@ export class CallApi extends BaseAPI {
|
|
|
5542
5638
|
callControllerCallOperationsRunGptV1V1(gptV1Request, options) {
|
|
5543
5639
|
return CallApiFp(this.configuration).callControllerCallOperationsRunGptV1V1(gptV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
5544
5640
|
}
|
|
5641
|
+
/**
|
|
5642
|
+
*
|
|
5643
|
+
* @param {GptV2Request} gptV2Request
|
|
5644
|
+
* @param {*} [options] Override http request option.
|
|
5645
|
+
* @throws {RequiredError}
|
|
5646
|
+
* @memberof CallApi
|
|
5647
|
+
*/
|
|
5648
|
+
callControllerCallOperationsRunGptV2V1(gptV2Request, options) {
|
|
5649
|
+
return CallApiFp(this.configuration).callControllerCallOperationsRunGptV2V1(gptV2Request, options).then((request) => request(this.axios, this.basePath));
|
|
5650
|
+
}
|
|
5545
5651
|
/**
|
|
5546
5652
|
*
|
|
5547
5653
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -7534,6 +7640,38 @@ export const OperationsApiAxiosParamCreator = function (configuration) {
|
|
|
7534
7640
|
options: localVarRequestOptions,
|
|
7535
7641
|
};
|
|
7536
7642
|
},
|
|
7643
|
+
/**
|
|
7644
|
+
*
|
|
7645
|
+
* @param {GptV2Request} gptV2Request
|
|
7646
|
+
* @param {*} [options] Override http request option.
|
|
7647
|
+
* @throws {RequiredError}
|
|
7648
|
+
*/
|
|
7649
|
+
operationsControllerRunGptV2V1: async (gptV2Request, options = {}) => {
|
|
7650
|
+
// verify required parameter 'gptV2Request' is not null or undefined
|
|
7651
|
+
assertParamExists('operationsControllerRunGptV2V1', 'gptV2Request', gptV2Request);
|
|
7652
|
+
const localVarPath = `/v1/operations/run/gpt.v2`;
|
|
7653
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7654
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7655
|
+
let baseOptions;
|
|
7656
|
+
if (configuration) {
|
|
7657
|
+
baseOptions = configuration.baseOptions;
|
|
7658
|
+
}
|
|
7659
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7660
|
+
const localVarHeaderParameter = {};
|
|
7661
|
+
const localVarQueryParameter = {};
|
|
7662
|
+
// authentication bearer required
|
|
7663
|
+
// http bearer authentication required
|
|
7664
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7665
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7668
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7669
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gptV2Request, localVarRequestOptions, configuration);
|
|
7670
|
+
return {
|
|
7671
|
+
url: toPathString(localVarUrlObj),
|
|
7672
|
+
options: localVarRequestOptions,
|
|
7673
|
+
};
|
|
7674
|
+
},
|
|
7537
7675
|
/**
|
|
7538
7676
|
*
|
|
7539
7677
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8237,6 +8375,18 @@ export const OperationsApiFp = function (configuration) {
|
|
|
8237
8375
|
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGptV1V1']?.[localVarOperationServerIndex]?.url;
|
|
8238
8376
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8239
8377
|
},
|
|
8378
|
+
/**
|
|
8379
|
+
*
|
|
8380
|
+
* @param {GptV2Request} gptV2Request
|
|
8381
|
+
* @param {*} [options] Override http request option.
|
|
8382
|
+
* @throws {RequiredError}
|
|
8383
|
+
*/
|
|
8384
|
+
async operationsControllerRunGptV2V1(gptV2Request, options) {
|
|
8385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunGptV2V1(gptV2Request, options);
|
|
8386
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8387
|
+
const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGptV2V1']?.[localVarOperationServerIndex]?.url;
|
|
8388
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8389
|
+
},
|
|
8240
8390
|
/**
|
|
8241
8391
|
*
|
|
8242
8392
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8561,6 +8711,15 @@ export const OperationsApiFactory = function (configuration, basePath, axios) {
|
|
|
8561
8711
|
operationsControllerRunGptV1V1(gptV1Request, options) {
|
|
8562
8712
|
return localVarFp.operationsControllerRunGptV1V1(gptV1Request, options).then((request) => request(axios, basePath));
|
|
8563
8713
|
},
|
|
8714
|
+
/**
|
|
8715
|
+
*
|
|
8716
|
+
* @param {GptV2Request} gptV2Request
|
|
8717
|
+
* @param {*} [options] Override http request option.
|
|
8718
|
+
* @throws {RequiredError}
|
|
8719
|
+
*/
|
|
8720
|
+
operationsControllerRunGptV2V1(gptV2Request, options) {
|
|
8721
|
+
return localVarFp.operationsControllerRunGptV2V1(gptV2Request, options).then((request) => request(axios, basePath));
|
|
8722
|
+
},
|
|
8564
8723
|
/**
|
|
8565
8724
|
*
|
|
8566
8725
|
* @param {HauteLindaV1Request} hauteLindaV1Request
|
|
@@ -8846,6 +9005,16 @@ export class OperationsApi extends BaseAPI {
|
|
|
8846
9005
|
operationsControllerRunGptV1V1(gptV1Request, options) {
|
|
8847
9006
|
return OperationsApiFp(this.configuration).operationsControllerRunGptV1V1(gptV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
8848
9007
|
}
|
|
9008
|
+
/**
|
|
9009
|
+
*
|
|
9010
|
+
* @param {GptV2Request} gptV2Request
|
|
9011
|
+
* @param {*} [options] Override http request option.
|
|
9012
|
+
* @throws {RequiredError}
|
|
9013
|
+
* @memberof OperationsApi
|
|
9014
|
+
*/
|
|
9015
|
+
operationsControllerRunGptV2V1(gptV2Request, options) {
|
|
9016
|
+
return OperationsApiFp(this.configuration).operationsControllerRunGptV2V1(gptV2Request, options).then((request) => request(this.axios, this.basePath));
|
|
9017
|
+
}
|
|
8849
9018
|
/**
|
|
8850
9019
|
*
|
|
8851
9020
|
* @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),
|