@sap-ai-sdk/foundation-models 1.6.1-20250115013059.0 → 1.6.1-20250116013044.0

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.
Files changed (251) hide show
  1. package/README.md +18 -0
  2. package/dist/azure-openai/azure-openai-chat-completion-response.d.ts +3 -3
  3. package/dist/azure-openai/azure-openai-chat-completion-response.d.ts.map +1 -1
  4. package/dist/azure-openai/azure-openai-chat-completion-response.js.map +1 -1
  5. package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.d.ts +4 -4
  6. package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.d.ts.map +1 -1
  7. package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.js +2 -5
  8. package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.js.map +1 -1
  9. package/dist/azure-openai/azure-openai-chat-completion-stream-response.d.ts +4 -4
  10. package/dist/azure-openai/azure-openai-chat-completion-stream-response.d.ts.map +1 -1
  11. package/dist/azure-openai/azure-openai-chat-completion-stream-response.js.map +1 -1
  12. package/dist/azure-openai/azure-openai-chat-completion-stream.d.ts +5 -4
  13. package/dist/azure-openai/azure-openai-chat-completion-stream.d.ts.map +1 -1
  14. package/dist/azure-openai/azure-openai-chat-completion-stream.js +9 -5
  15. package/dist/azure-openai/azure-openai-chat-completion-stream.js.map +1 -1
  16. package/dist/azure-openai/client/inference/schema/audio-response-format.js +1 -1
  17. package/dist/azure-openai/client/inference/schema/audio-response.d.ts +1 -1
  18. package/dist/azure-openai/client/inference/schema/audio-response.js +1 -1
  19. package/dist/azure-openai/client/inference/schema/audio-segment.js +1 -1
  20. package/dist/azure-openai/client/inference/schema/audio-verbose-response.d.ts +1 -1
  21. package/dist/azure-openai/client/inference/schema/azure-chat-extension-configuration.d.ts +3 -3
  22. package/dist/azure-openai/client/inference/schema/azure-chat-extension-type.d.ts +3 -3
  23. package/dist/azure-openai/client/inference/schema/azure-chat-extension-type.js +1 -1
  24. package/dist/azure-openai/client/inference/schema/azure-chat-extensions-message-context.d.ts +3 -3
  25. package/dist/azure-openai/client/inference/schema/azure-cosmos-db-field-mapping-options.js +1 -1
  26. package/dist/azure-openai/client/inference/schema/azure-search-index-field-mapping-options.js +1 -1
  27. package/dist/azure-openai/client/inference/schema/azure-search-query-type.js +1 -1
  28. package/dist/azure-openai/client/inference/schema/chat-completion-choice-common.js +1 -1
  29. package/dist/azure-openai/client/inference/schema/chat-completion-choice-log-probs.d.ts +4 -0
  30. package/dist/azure-openai/client/inference/schema/chat-completion-choice-log-probs.d.ts.map +1 -1
  31. package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.d.ts +11 -0
  32. package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.d.ts.map +1 -0
  33. package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.js +7 -0
  34. package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.js.map +1 -0
  35. package/dist/azure-openai/client/inference/schema/chat-completion-function-call.js +1 -1
  36. package/dist/azure-openai/client/inference/schema/chat-completion-functions.d.ts +17 -0
  37. package/dist/azure-openai/client/inference/schema/chat-completion-functions.d.ts.map +1 -0
  38. package/dist/azure-openai/client/inference/schema/chat-completion-functions.js +2 -0
  39. package/dist/azure-openai/client/inference/schema/chat-completion-functions.js.map +1 -0
  40. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.d.ts +25 -0
  41. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.d.ts.map +1 -0
  42. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.js +7 -0
  43. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.js.map +1 -0
  44. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.d.ts +6 -0
  45. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.d.ts.map +1 -0
  46. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.js +2 -0
  47. package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.js.map +1 -0
  48. package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.d.ts +2 -2
  49. package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.d.ts.map +1 -1
  50. package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.js +1 -1
  51. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.d.ts +7 -0
  52. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.d.ts.map +1 -0
  53. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.js +2 -0
  54. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.js.map +1 -0
  55. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.d.ts +40 -0
  56. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.d.ts.map +1 -0
  57. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.js +2 -0
  58. package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.js.map +1 -0
  59. package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.d.ts +19 -0
  60. package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.d.ts.map +1 -0
  61. package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.js +7 -0
  62. package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.js.map +1 -0
  63. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.d.ts +14 -7
  64. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.d.ts.map +1 -1
  65. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.js +5 -0
  66. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.js.map +1 -1
  67. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-refusal.d.ts +14 -0
  68. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-refusal.d.ts.map +1 -0
  69. package/dist/azure-openai/client/inference/schema/{chat-completion-request-message-content-part-type.js → chat-completion-request-message-content-part-refusal.js} +2 -2
  70. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-refusal.js.map +1 -0
  71. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.d.ts +4 -2
  72. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.d.ts.map +1 -1
  73. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.js +1 -1
  74. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.d.ts +2 -3
  75. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.d.ts.map +1 -1
  76. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.js +0 -5
  77. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.js.map +1 -1
  78. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.d.ts +2 -3
  79. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.d.ts.map +1 -1
  80. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.js +0 -5
  81. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.js.map +1 -1
  82. package/dist/azure-openai/client/inference/schema/chat-completion-request-message.d.ts +6 -16
  83. package/dist/azure-openai/client/inference/schema/chat-completion-request-message.d.ts.map +1 -1
  84. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.d.ts +6 -0
  85. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.d.ts.map +1 -0
  86. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.js +2 -0
  87. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.js.map +1 -0
  88. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.d.ts +19 -0
  89. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.d.ts.map +1 -0
  90. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.js +2 -0
  91. package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.js.map +1 -0
  92. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.d.ts +6 -0
  93. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.d.ts.map +1 -0
  94. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.js +2 -0
  95. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.js.map +1 -0
  96. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.d.ts +19 -0
  97. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.d.ts.map +1 -0
  98. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.js +2 -0
  99. package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.js.map +1 -0
  100. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.d.ts +7 -0
  101. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.d.ts.map +1 -0
  102. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.js +2 -0
  103. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.js.map +1 -0
  104. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.d.ts +20 -0
  105. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.d.ts.map +1 -0
  106. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.js +2 -0
  107. package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.js.map +1 -0
  108. package/dist/azure-openai/client/inference/schema/chat-completion-response-message-role.js +1 -1
  109. package/dist/azure-openai/client/inference/schema/chat-completion-response-message.d.ts +6 -2
  110. package/dist/azure-openai/client/inference/schema/chat-completion-response-message.d.ts.map +1 -1
  111. package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.d.ts +12 -0
  112. package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.d.ts.map +1 -0
  113. package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.js +7 -0
  114. package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.js.map +1 -0
  115. package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.d.ts +34 -0
  116. package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.d.ts.map +1 -0
  117. package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.js +2 -0
  118. package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.js.map +1 -0
  119. package/dist/azure-openai/client/inference/schema/chat-completion-token-logprob.js +1 -1
  120. package/dist/azure-openai/client/inference/schema/chat-completion-tool-choice-option.d.ts +1 -1
  121. package/dist/azure-openai/client/inference/schema/chat-completion-tool.d.ts +6 -14
  122. package/dist/azure-openai/client/inference/schema/chat-completion-tool.d.ts.map +1 -1
  123. package/dist/azure-openai/client/inference/schema/chat-completions-request-common.d.ts +5 -1
  124. package/dist/azure-openai/client/inference/schema/chat-completions-request-common.d.ts.map +1 -1
  125. package/dist/azure-openai/client/inference/schema/chat-completions-request-common.js +1 -1
  126. package/dist/azure-openai/client/inference/schema/citation.d.ts +1 -1
  127. package/dist/azure-openai/client/inference/schema/citation.js +1 -1
  128. package/dist/azure-openai/client/inference/schema/completion-usage.d.ts +9 -0
  129. package/dist/azure-openai/client/inference/schema/completion-usage.d.ts.map +1 -1
  130. package/dist/azure-openai/client/inference/schema/completion-usage.js +1 -1
  131. package/dist/azure-openai/client/inference/schema/content-filter-result-base.js +1 -1
  132. package/dist/azure-openai/client/inference/schema/create-chat-completion-request.d.ts +111 -27
  133. package/dist/azure-openai/client/inference/schema/create-chat-completion-request.d.ts.map +1 -1
  134. package/dist/azure-openai/client/inference/schema/create-chat-completion-response.d.ts +58 -8
  135. package/dist/azure-openai/client/inference/schema/create-chat-completion-response.d.ts.map +1 -1
  136. package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.d.ts +62 -0
  137. package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.d.ts.map +1 -0
  138. package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.js +2 -0
  139. package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.js.map +1 -0
  140. package/dist/azure-openai/client/inference/schema/create-completion-request.d.ts +134 -0
  141. package/dist/azure-openai/client/inference/schema/create-completion-request.d.ts.map +1 -0
  142. package/dist/azure-openai/client/inference/schema/create-completion-request.js +7 -0
  143. package/dist/azure-openai/client/inference/schema/create-completion-request.js.map +1 -0
  144. package/dist/azure-openai/client/inference/schema/create-completion-response.d.ts +56 -0
  145. package/dist/azure-openai/client/inference/schema/create-completion-response.d.ts.map +1 -0
  146. package/dist/azure-openai/client/inference/schema/create-completion-response.js +2 -0
  147. package/dist/azure-openai/client/inference/schema/create-completion-response.js.map +1 -0
  148. package/dist/azure-openai/client/inference/schema/error-base.js +1 -1
  149. package/dist/azure-openai/client/inference/schema/function-object.d.ts +20 -0
  150. package/dist/azure-openai/client/inference/schema/function-object.d.ts.map +1 -0
  151. package/dist/azure-openai/client/inference/schema/function-object.js +2 -0
  152. package/dist/azure-openai/client/inference/schema/function-object.js.map +1 -0
  153. package/dist/azure-openai/client/inference/schema/function-parameters.d.ts +7 -0
  154. package/dist/azure-openai/client/inference/schema/function-parameters.d.ts.map +1 -0
  155. package/dist/azure-openai/client/inference/schema/function-parameters.js +7 -0
  156. package/dist/azure-openai/client/inference/schema/function-parameters.js.map +1 -0
  157. package/dist/azure-openai/client/inference/schema/generate-images-response.d.ts +1 -1
  158. package/dist/azure-openai/client/inference/schema/image-quality.js +1 -1
  159. package/dist/azure-openai/client/inference/schema/image-result.d.ts +1 -1
  160. package/dist/azure-openai/client/inference/schema/image-size.js +1 -1
  161. package/dist/azure-openai/client/inference/schema/image-style.js +1 -1
  162. package/dist/azure-openai/client/inference/schema/images-response-format.js +1 -1
  163. package/dist/azure-openai/client/inference/schema/index.d.ts +26 -13
  164. package/dist/azure-openai/client/inference/schema/index.d.ts.map +1 -1
  165. package/dist/azure-openai/client/inference/schema/index.js +27 -14
  166. package/dist/azure-openai/client/inference/schema/index.js.map +1 -1
  167. package/dist/azure-openai/client/inference/schema/inner-error-code.js +1 -1
  168. package/dist/azure-openai/client/inference/schema/on-your-data-api-key-authentication-options.js +1 -1
  169. package/dist/azure-openai/client/inference/schema/on-your-data-authentication-type.js +1 -1
  170. package/dist/azure-openai/client/inference/schema/on-your-data-connection-string-authentication-options.js +1 -1
  171. package/dist/azure-openai/client/inference/schema/on-your-data-deployment-name-vectorization-source.js +1 -1
  172. package/dist/azure-openai/client/inference/schema/on-your-data-system-assigned-managed-identity-authentication-options.js +1 -1
  173. package/dist/azure-openai/client/inference/schema/on-your-data-user-assigned-managed-identity-authentication-options.js +1 -1
  174. package/dist/azure-openai/client/inference/schema/on-your-data-vectorization-source-type.js +1 -1
  175. package/dist/azure-openai/client/inference/schema/parallel-tool-calls.d.ts +6 -0
  176. package/dist/azure-openai/client/inference/schema/parallel-tool-calls.d.ts.map +1 -0
  177. package/dist/azure-openai/client/inference/schema/parallel-tool-calls.js +7 -0
  178. package/dist/azure-openai/client/inference/schema/parallel-tool-calls.js.map +1 -0
  179. package/dist/azure-openai/client/inference/schema/response-format-json-object.d.ts +10 -0
  180. package/dist/azure-openai/client/inference/schema/response-format-json-object.d.ts.map +1 -0
  181. package/dist/azure-openai/client/inference/schema/response-format-json-object.js +7 -0
  182. package/dist/azure-openai/client/inference/schema/response-format-json-object.js.map +1 -0
  183. package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.d.ts +5 -0
  184. package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.d.ts.map +1 -0
  185. package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.js +7 -0
  186. package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.js.map +1 -0
  187. package/dist/azure-openai/client/inference/schema/response-format-json-schema.d.ts +26 -0
  188. package/dist/azure-openai/client/inference/schema/response-format-json-schema.d.ts.map +1 -0
  189. package/dist/azure-openai/client/inference/schema/response-format-json-schema.js +2 -0
  190. package/dist/azure-openai/client/inference/schema/response-format-json-schema.js.map +1 -0
  191. package/dist/azure-openai/client/inference/schema/response-format-text.d.ts +10 -0
  192. package/dist/azure-openai/client/inference/schema/response-format-text.d.ts.map +1 -0
  193. package/dist/azure-openai/client/inference/schema/response-format-text.js +7 -0
  194. package/dist/azure-openai/client/inference/schema/response-format-text.js.map +1 -0
  195. package/dist/azure-openai/client/inference/schema/tool-call-type.js +1 -1
  196. package/dist/azure-openai/model-types.d.ts +1 -1
  197. package/dist/azure-openai/model-types.js +1 -1
  198. package/dist/index.d.ts +1 -1
  199. package/dist/index.d.ts.map +1 -1
  200. package/package.json +5 -4
  201. package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.d.ts +0 -5
  202. package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.d.ts.map +0 -1
  203. package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.js +0 -7
  204. package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.js.map +0 -1
  205. package/dist/azure-openai/client/inference/schema/chat-completion-function.d.ts +0 -16
  206. package/dist/azure-openai/client/inference/schema/chat-completion-function.d.ts.map +0 -1
  207. package/dist/azure-openai/client/inference/schema/chat-completion-function.js +0 -2
  208. package/dist/azure-openai/client/inference/schema/chat-completion-function.js.map +0 -1
  209. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.d.ts +0 -19
  210. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.d.ts.map +0 -1
  211. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.js +0 -2
  212. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.js.map +0 -1
  213. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-type.d.ts +0 -5
  214. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-type.d.ts.map +0 -1
  215. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-type.js.map +0 -1
  216. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.d.ts +0 -11
  217. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.d.ts.map +0 -1
  218. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.js +0 -2
  219. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.js.map +0 -1
  220. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.d.ts +0 -5
  221. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.d.ts.map +0 -1
  222. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.js +0 -7
  223. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.js.map +0 -1
  224. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.d.ts +0 -12
  225. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.d.ts.map +0 -1
  226. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.js +0 -7
  227. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.js.map +0 -1
  228. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.d.ts +0 -10
  229. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.d.ts.map +0 -1
  230. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.js +0 -2
  231. package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.js.map +0 -1
  232. package/dist/azure-openai/client/inference/schema/chat-completion-response-format.d.ts +0 -7
  233. package/dist/azure-openai/client/inference/schema/chat-completion-response-format.d.ts.map +0 -1
  234. package/dist/azure-openai/client/inference/schema/chat-completion-response-format.js +0 -7
  235. package/dist/azure-openai/client/inference/schema/chat-completion-response-format.js.map +0 -1
  236. package/dist/azure-openai/client/inference/schema/chat-completion-response-object.d.ts +0 -5
  237. package/dist/azure-openai/client/inference/schema/chat-completion-response-object.d.ts.map +0 -1
  238. package/dist/azure-openai/client/inference/schema/chat-completion-response-object.js +0 -7
  239. package/dist/azure-openai/client/inference/schema/chat-completion-response-object.js.map +0 -1
  240. package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.d.ts +0 -5
  241. package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.d.ts.map +0 -1
  242. package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.js +0 -7
  243. package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.js.map +0 -1
  244. package/dist/azure-openai/client/inference/schema/chat-completions-response-common.d.ts +0 -27
  245. package/dist/azure-openai/client/inference/schema/chat-completions-response-common.d.ts.map +0 -1
  246. package/dist/azure-openai/client/inference/schema/chat-completions-response-common.js +0 -2
  247. package/dist/azure-openai/client/inference/schema/chat-completions-response-common.js.map +0 -1
  248. package/dist/azure-openai/client/inference/schema/image-detail-level.d.ts +0 -6
  249. package/dist/azure-openai/client/inference/schema/image-detail-level.d.ts.map +0 -1
  250. package/dist/azure-openai/client/inference/schema/image-detail-level.js +0 -7
  251. package/dist/azure-openai/client/inference/schema/image-detail-level.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import type { AzureOpenAiChatCompletionNamedToolChoice } from './chat-completion-named-tool-choice.js';
2
2
  /**
3
- * Controls which (if any) function is called by the model. `none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function. Specifying a particular function via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that function.
3
+ * Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. `none` is the default when no tools are present. `auto` is the default if tools are present.
4
4
  */
5
5
  export type AzureOpenAiChatCompletionToolChoiceOption = 'none' | 'auto' | 'required' | AzureOpenAiChatCompletionNamedToolChoice;
6
6
  //# sourceMappingURL=chat-completion-tool-choice-option.d.ts.map
@@ -1,20 +1,12 @@
1
- import type { AzureOpenAiChatCompletionToolType } from './chat-completion-tool-type.js';
2
- import type { AzureOpenAiChatCompletionFunctionParameters } from './chat-completion-function-parameters.js';
1
+ import type { AzureOpenAiFunctionObject } from './function-object.js';
3
2
  /**
4
3
  * Representation of the 'AzureOpenAiChatCompletionTool' schema.
5
4
  */
6
5
  export type AzureOpenAiChatCompletionTool = {
7
- type: AzureOpenAiChatCompletionToolType;
8
- function: {
9
- /**
10
- * A description of what the function does, used by the model to choose when and how to call the function.
11
- */
12
- description?: string;
13
- /**
14
- * 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.
15
- */
16
- name: string;
17
- parameters: AzureOpenAiChatCompletionFunctionParameters;
18
- } & Record<string, any>;
6
+ /**
7
+ * The type of the tool. Currently, only `function` is supported.
8
+ */
9
+ type: 'function';
10
+ function: AzureOpenAiFunctionObject;
19
11
  } & Record<string, any>;
20
12
  //# sourceMappingURL=chat-completion-tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-completion-tool.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-tool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,0CAA0C,CAAC;AAC5G;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE;QACR;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,2CAA2C,CAAC;KACzD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"chat-completion-tool.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-tool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,yBAAyB,CAAC;CACrC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -27,10 +27,14 @@ export type AzureOpenAiChatCompletionsRequestCommon = {
27
27
  */
28
28
  stop?: string | string[];
29
29
  /**
30
- * The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will be (4096 - prompt tokens).
30
+ * The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will be (4096 - prompt tokens). This value is now deprecated in favor of `max_completion_tokens`, and is not compatible with o1 series models.
31
31
  * Default: 4096.
32
32
  */
33
33
  max_tokens?: number;
34
+ /**
35
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.
36
+ */
37
+ max_completion_tokens?: number | null;
34
38
  /**
35
39
  * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
36
40
  * Maximum: 2.
@@ -1 +1 @@
1
- {"version":3,"file":"chat-completions-request-common.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completions-request-common.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"chat-completions-request-common.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completions-request-common.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved.
2
+ * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3
3
  *
4
4
  * This is a generated file powered by the SAP Cloud SDK for JavaScript.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Citation information for a chat completions response message.
2
+ * citation information for a chat completions response message.
3
3
  */
4
4
  export type AzureOpenAiCitation = {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved.
2
+ * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3
3
  *
4
4
  * This is a generated file powered by the SAP Cloud SDK for JavaScript.
5
5
  */
@@ -14,5 +14,14 @@ export type AzureOpenAiCompletionUsage = {
14
14
  * Total number of tokens used in the request (prompt + completion).
15
15
  */
16
16
  total_tokens: number;
17
+ /**
18
+ * Breakdown of tokens used in a completion.
19
+ */
20
+ completion_tokens_details?: {
21
+ /**
22
+ * Tokens generated by the model for reasoning.
23
+ */
24
+ reasoning_tokens?: number;
25
+ } & Record<string, any>;
17
26
  } & Record<string, any>;
18
27
  //# sourceMappingURL=completion-usage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"completion-usage.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/completion-usage.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"completion-usage.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/completion-usage.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,yBAAyB,CAAC,EAAE;QAC1B;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved.
2
+ * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3
3
  *
4
4
  * This is a generated file powered by the SAP Cloud SDK for JavaScript.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved.
2
+ * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3
3
  *
4
4
  * This is a generated file powered by the SAP Cloud SDK for JavaScript.
5
5
  */
@@ -1,10 +1,14 @@
1
1
  import type { AzureOpenAiChatCompletionsRequestCommon } from './chat-completions-request-common.js';
2
2
  import type { AzureOpenAiChatCompletionRequestMessage } from './chat-completion-request-message.js';
3
3
  import type { AzureOpenAiAzureChatExtensionConfiguration } from './azure-chat-extension-configuration.js';
4
- import type { AzureOpenAiChatCompletionResponseFormat } from './chat-completion-response-format.js';
4
+ import type { AzureOpenAiParallelToolCalls } from './parallel-tool-calls.js';
5
+ import type { AzureOpenAiResponseFormatText } from './response-format-text.js';
6
+ import type { AzureOpenAiResponseFormatJsonObject } from './response-format-json-object.js';
7
+ import type { AzureOpenAiResponseFormatJsonSchema } from './response-format-json-schema.js';
5
8
  import type { AzureOpenAiChatCompletionTool } from './chat-completion-tool.js';
6
9
  import type { AzureOpenAiChatCompletionToolChoiceOption } from './chat-completion-tool-choice-option.js';
7
- import type { AzureOpenAiChatCompletionFunction } from './chat-completion-function.js';
10
+ import type { AzureOpenAiChatCompletionFunctionCallOption } from './chat-completion-function-call-option.js';
11
+ import type { AzureOpenAiChatCompletionFunctions } from './chat-completion-functions.js';
8
12
  /**
9
13
  * Representation of the 'AzureOpenAiCreateChatCompletionRequest' schema.
10
14
  */
@@ -15,12 +19,42 @@ export type AzureOpenAiCreateChatCompletionRequest = AzureOpenAiChatCompletionsR
15
19
  */
16
20
  messages: AzureOpenAiChatCompletionRequestMessage[];
17
21
  /**
18
- * The configuration entries for Azure OpenAI chat extensions that use them.
19
- * This additional specification is only compatible with Azure OpenAI.
22
+ * The configuration entries for Azure OpenAI chat extensions that use them.
23
+ * This additional specification is only compatible with Azure OpenAI.
20
24
  */
21
25
  data_sources?: AzureOpenAiAzureChatExtensionConfiguration[];
22
26
  /**
23
- * How many chat completion choices to generate for each input message.
27
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
28
+ *
29
+ * Maximum: 2.
30
+ * Minimum: -2.
31
+ */
32
+ frequency_penalty?: number | null;
33
+ /**
34
+ * Modify the likelihood of specified tokens appearing in the completion.
35
+ *
36
+ * Accepts a JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
37
+ *
38
+ */
39
+ logit_bias?: Record<string, number> | null;
40
+ /**
41
+ * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the `content` of `message`.
42
+ */
43
+ logprobs?: boolean | null;
44
+ /**
45
+ * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. `logprobs` must be set to `true` if this parameter is used.
46
+ * Maximum: 20.
47
+ */
48
+ top_logprobs?: number | null;
49
+ /**
50
+ * The maximum number of [tokens](/tokenizer) that can be generated in the chat completion.
51
+ *
52
+ * The total length of input tokens and generated tokens is limited by the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.
53
+ *
54
+ */
55
+ max_tokens?: number | null;
56
+ /**
57
+ * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.
24
58
  * @example 1
25
59
  * Default: 1.
26
60
  * Maximum: 128.
@@ -28,47 +62,97 @@ export type AzureOpenAiCreateChatCompletionRequest = AzureOpenAiChatCompletionsR
28
62
  */
29
63
  n?: number | null;
30
64
  /**
31
- * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.
32
- * @example 1
65
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
66
+ *
67
+ * Maximum: 2.
68
+ * Minimum: -2.
69
+ */
70
+ presence_penalty?: number | null;
71
+ parallel_tool_calls?: AzureOpenAiParallelToolCalls;
72
+ /**
73
+ * An object specifying the format that the model must output. Compatible with [GPT-4o](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-and-gpt-4-turbo-models), [GPT-4o mini](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-and-gpt-4-turbo-models), [GPT-4 Turbo](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-and-gpt-4-turbo-models) and all [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35) Turbo models newer than `gpt-3.5-turbo-1106`.
74
+ *
75
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which guarantees the model will match your supplied JSON schema.
76
+ *
77
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
78
+ *
79
+ * **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.
80
+ *
81
+ */
82
+ response_format?: AzureOpenAiResponseFormatText | AzureOpenAiResponseFormatJsonObject | AzureOpenAiResponseFormatJsonSchema;
83
+ /**
84
+ * This feature is in Beta.
85
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
86
+ * Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.
87
+ *
33
88
  * Maximum: 9223372036854776000.
34
89
  * Minimum: -9223372036854776000.
35
90
  */
36
91
  seed?: number | null;
37
92
  /**
38
- * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the `content` of `message`. This option is currently not available on the `gpt-4-vision-preview` model.
93
+ * Up to 4 sequences where the API will stop generating further tokens.
94
+ *
39
95
  */
40
- logprobs?: boolean | null;
96
+ stop?: string | string[];
41
97
  /**
42
- * An integer between 0 and 5 specifying the number of most likely tokens to return at each token position, each with an associated log probability. `logprobs` must be set to `true` if this parameter is used.
43
- * Maximum: 5.
98
+ * If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).
99
+ *
44
100
  */
45
- top_logprobs?: number | null;
101
+ stream?: boolean | null;
102
+ /**
103
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
104
+ *
105
+ * We generally recommend altering this or `top_p` but not both.
106
+ *
107
+ * @example 1
108
+ * Default: 1.
109
+ * Maximum: 2.
110
+ */
111
+ temperature?: number | null;
46
112
  /**
47
- * An object specifying the format that the model must output. Used to enable JSON mode.
113
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
114
+ *
115
+ * We generally recommend altering this or `temperature` but not both.
116
+ *
117
+ * @example 1
118
+ * Default: 1.
119
+ * Maximum: 1.
48
120
  */
49
- response_format?: {
50
- type?: AzureOpenAiChatCompletionResponseFormat;
51
- } & Record<string, any>;
121
+ top_p?: number | null;
52
122
  /**
53
- * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
54
- * Min Items: 1.
123
+ * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.
124
+ *
55
125
  */
56
126
  tools?: AzureOpenAiChatCompletionTool[];
57
127
  tool_choice?: AzureOpenAiChatCompletionToolChoiceOption;
58
128
  /**
59
- * Deprecated in favor of `tools`. A list of functions the model may generate JSON inputs for.
129
+ * Deprecated in favor of `tool_choice`.
130
+ *
131
+ * Controls which (if any) function is called by the model.
132
+ * `none` means the model will not call a function and instead generates a message.
133
+ * `auto` means the model can pick between generating a message or calling a function.
134
+ * Specifying a particular function via `{"name": "my_function"}` forces the model to call that function.
135
+ *
136
+ * `none` is the default when no functions are present. `auto` is the default if functions are present.
137
+ *
138
+ * @deprecated
139
+ */
140
+ function_call?: 'none' | 'auto' | AzureOpenAiChatCompletionFunctionCallOption;
141
+ /**
142
+ * Deprecated in favor of `tools`.
143
+ *
144
+ * A list of functions the model may generate JSON inputs for.
145
+ *
146
+ * @deprecated
60
147
  * Min Items: 1.
61
148
  * Max Items: 128.
62
149
  */
63
- functions?: AzureOpenAiChatCompletionFunction[];
150
+ functions?: AzureOpenAiChatCompletionFunctions[];
64
151
  /**
65
- * Deprecated in favor of `tool_choice`. Controls how the model responds to function calls. "none" means the model does not call a function, and responds to the end-user. "auto" means the model can pick between an end-user or calling a function. Specifying a particular function via `{"name":\ "my_function"}` forces the model to call that function. "none" is the default when no functions are present. "auto" is the default if functions are present.
152
+ * A unique identifier representing your end-user, which can help to monitor and detect abuse.
153
+ *
154
+ * @example "user-1234"
66
155
  */
67
- function_call?: 'none' | 'auto' | ({
68
- /**
69
- * The name of the function to call.
70
- */
71
- name: string;
72
- } & Record<string, any>);
156
+ user?: string;
73
157
  } & Record<string, any>;
74
158
  //# sourceMappingURL=create-chat-completion-request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion-request.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/create-chat-completion-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AACpG,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AACpG,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AACpG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,yCAAyC,CAAC;AACzG,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AACvF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAChD,uCAAuC,GAAG;IACxC;;;OAGG;IACH,QAAQ,EAAE,uCAAuC,EAAE,CAAC;IACpD;;;OAGG;IACH,YAAY,CAAC,EAAE,0CAA0C,EAAE,CAAC;IAC5D;;;;;;OAMG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE;QAChB,IAAI,CAAC,EAAE,uCAAuC,CAAC;KAChD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,6BAA6B,EAAE,CAAC;IACxC,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD;;;;OAIG;IACH,SAAS,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EACV,MAAM,GACN,MAAM,GACN,CAAC;QACC;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CAC9B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"create-chat-completion-request.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/create-chat-completion-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AACpG,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AACpG,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,yCAAyC,CAAC;AACzG,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,2CAA2C,CAAC;AAC7G,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,gCAAgC,CAAC;AACzF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAChD,uCAAuC,GAAG;IACxC;;;OAGG;IACH,QAAQ,EAAE,uCAAuC,EAAE,CAAC;IACpD;;;OAGG;IACH,YAAY,CAAC,EAAE,0CAA0C,EAAE,CAAC;IAC5D;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;;;OAMG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,4BAA4B,CAAC;IACnD;;;;;;;;;OASG;IACH,eAAe,CAAC,EACZ,6BAA6B,GAC7B,mCAAmC,GACnC,mCAAmC,CAAC;IACxC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,6BAA6B,EAAE,CAAC;IACxC,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EACV,MAAM,GACN,MAAM,GACN,2CAA2C,CAAC;IAChD;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,kCAAkC,EAAE,CAAC;IACjD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -1,18 +1,68 @@
1
- import type { AzureOpenAiChatCompletionsResponseCommon } from './chat-completions-response-common.js';
2
1
  import type { AzureOpenAiPromptFilterResults } from './prompt-filter-results.js';
3
- import type { AzureOpenAiChatCompletionChoiceCommon } from './chat-completion-choice-common.js';
4
2
  import type { AzureOpenAiChatCompletionResponseMessage } from './chat-completion-response-message.js';
5
3
  import type { AzureOpenAiContentFilterChoiceResults } from './content-filter-choice-results.js';
6
- import type { AzureOpenAiChatCompletionChoiceLogProbs } from './chat-completion-choice-log-probs.js';
4
+ import type { AzureOpenAiChatCompletionTokenLogprob } from './chat-completion-token-logprob.js';
5
+ import type { AzureOpenAiCompletionUsage } from './completion-usage.js';
7
6
  /**
8
- * Representation of the 'AzureOpenAiCreateChatCompletionResponse' schema.
7
+ * Represents a chat completion response returned by model, based on the provided input.
9
8
  */
10
- export type AzureOpenAiCreateChatCompletionResponse = AzureOpenAiChatCompletionsResponseCommon & {
9
+ export type AzureOpenAiCreateChatCompletionResponse = {
10
+ /**
11
+ * A unique identifier for the chat completion.
12
+ */
13
+ id: string;
11
14
  prompt_filter_results?: AzureOpenAiPromptFilterResults;
12
- choices: (AzureOpenAiChatCompletionChoiceCommon & {
13
- message?: AzureOpenAiChatCompletionResponseMessage;
15
+ /**
16
+ * A list of chat completion choices. Can be more than one if `n` is greater than 1.
17
+ */
18
+ choices: ({
19
+ /**
20
+ * The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
21
+ * `length` if the maximum number of tokens specified in the request was reached,
22
+ * `content_filter` if content was omitted due to a flag from our content filters,
23
+ * `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
24
+ *
25
+ */
26
+ finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call';
27
+ /**
28
+ * The index of the choice in the list of choices.
29
+ */
30
+ index: number;
31
+ message: AzureOpenAiChatCompletionResponseMessage;
14
32
  content_filter_results?: AzureOpenAiContentFilterChoiceResults;
15
- logprobs?: AzureOpenAiChatCompletionChoiceLogProbs;
33
+ /**
34
+ * Log probability information for the choice.
35
+ */
36
+ logprobs: ({
37
+ /**
38
+ * A list of message content tokens with log probability information.
39
+ */
40
+ content: AzureOpenAiChatCompletionTokenLogprob[] | null;
41
+ /**
42
+ * A list of message refusal tokens with log probability information.
43
+ */
44
+ refusal: AzureOpenAiChatCompletionTokenLogprob[] | null;
45
+ } & Record<string, any>) | null;
16
46
  } & Record<string, any>)[];
47
+ /**
48
+ * The Unix timestamp (in seconds) of when the chat completion was created.
49
+ */
50
+ created: number;
51
+ /**
52
+ * The model used for the chat completion.
53
+ */
54
+ model: string;
55
+ /**
56
+ * This fingerprint represents the backend configuration that the model runs with.
57
+ *
58
+ * Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
59
+ *
60
+ */
61
+ system_fingerprint?: string;
62
+ /**
63
+ * The object type, which is always `chat.completion`.
64
+ */
65
+ object: 'chat.completion';
66
+ usage?: AzureOpenAiCompletionUsage;
17
67
  } & Record<string, any>;
18
68
  //# sourceMappingURL=create-chat-completion-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion-response.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/create-chat-completion-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,uCAAuC,CAAC;AACrG;;GAEG;AACH,MAAM,MAAM,uCAAuC,GACjD,wCAAwC,GAAG;IACzC,qBAAqB,CAAC,EAAE,8BAA8B,CAAC;IACvD,OAAO,EAAE,CAAC,qCAAqC,GAAG;QAChD,OAAO,CAAC,EAAE,wCAAwC,CAAC;QACnD,sBAAsB,CAAC,EAAE,qCAAqC,CAAC;QAC/D,QAAQ,CAAC,EAAE,uCAAuC,CAAC;KACpD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;CAC5B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"create-chat-completion-response.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/create-chat-completion-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACxE;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,CAAC,EAAE,8BAA8B,CAAC;IACvD;;OAEG;IACH,OAAO,EAAE,CAAC;QACR;;;;;;WAMG;QACH,aAAa,EACT,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,gBAAgB,GAChB,eAAe,CAAC;QACpB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,wCAAwC,CAAC;QAClD,sBAAsB,CAAC,EAAE,qCAAqC,CAAC;QAC/D;;WAEG;QACH,QAAQ,EACJ,CAAC;YACC;;eAEG;YACH,OAAO,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;YACxD;;eAEG;YACH,OAAO,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;SACzD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GACxB,IAAI,CAAC;KACV,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,CAAC,EAAE,0BAA0B,CAAC;CACpC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,62 @@
1
+ import type { AzureOpenAiChatCompletionStreamResponseDelta } from './chat-completion-stream-response-delta.js';
2
+ import type { AzureOpenAiChatCompletionTokenLogprob } from './chat-completion-token-logprob.js';
3
+ /**
4
+ * Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
5
+ */
6
+ export type AzureOpenAiCreateChatCompletionStreamResponse = {
7
+ /**
8
+ * A unique identifier for the chat completion. Each chunk has the same ID.
9
+ */
10
+ id: string;
11
+ /**
12
+ * A list of chat completion choices. Can contain more than one elements if `n` is greater than 1.
13
+ *
14
+ */
15
+ choices: ({
16
+ delta: AzureOpenAiChatCompletionStreamResponseDelta;
17
+ /**
18
+ * Log probability information for the choice.
19
+ */
20
+ logprobs?: ({
21
+ /**
22
+ * A list of message content tokens with log probability information.
23
+ */
24
+ content: AzureOpenAiChatCompletionTokenLogprob[] | null;
25
+ /**
26
+ * A list of message refusal tokens with log probability information.
27
+ */
28
+ refusal: AzureOpenAiChatCompletionTokenLogprob[] | null;
29
+ } & Record<string, any>) | null;
30
+ /**
31
+ * The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
32
+ * `length` if the maximum number of tokens specified in the request was reached,
33
+ * `content_filter` if content was omitted due to a flag from our content filters,
34
+ * `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
35
+ *
36
+ */
37
+ finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call' | null;
38
+ /**
39
+ * The index of the choice in the list of choices.
40
+ */
41
+ index: number;
42
+ } & Record<string, any>)[];
43
+ /**
44
+ * The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
45
+ */
46
+ created: number;
47
+ /**
48
+ * The model to generate the completion.
49
+ */
50
+ model: string;
51
+ /**
52
+ * This fingerprint represents the backend configuration that the model runs with.
53
+ * Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
54
+ *
55
+ */
56
+ system_fingerprint?: string;
57
+ /**
58
+ * The object type, which is always `chat.completion.chunk`.
59
+ */
60
+ object: 'chat.completion.chunk';
61
+ } & Record<string, any>;
62
+ //# sourceMappingURL=create-chat-completion-stream-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-chat-completion-stream-response.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/create-chat-completion-stream-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,4CAA4C,CAAC;AAC/G,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG;;GAEG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,OAAO,EAAE,CAAC;QACR,KAAK,EAAE,4CAA4C,CAAC;QACpD;;WAEG;QACH,QAAQ,CAAC,EACL,CAAC;YACC;;eAEG;YACH,OAAO,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;YACxD;;eAEG;YACH,OAAO,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;SACzD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GACxB,IAAI,CAAC;QACT;;;;;;WAMG;QACH,aAAa,EACT,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,IAAI,CAAC;QACT;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,MAAM,EAAE,uBAAuB,CAAC;CACjC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-chat-completion-stream-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-chat-completion-stream-response.js","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/create-chat-completion-stream-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Representation of the 'AzureOpenAiCreateCompletionRequest' schema.
3
+ */
4
+ export type AzureOpenAiCreateCompletionRequest = {
5
+ /**
6
+ * The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
7
+ *
8
+ * Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
9
+ *
10
+ * Default: "<|endoftext|>".
11
+ */
12
+ prompt: string | string[] | null;
13
+ /**
14
+ * Generates `best_of` completions server-side and returns the "best" (the one with the highest log probability per token). Results cannot be streamed.
15
+ *
16
+ * When used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return – `best_of` must be greater than `n`.
17
+ *
18
+ * **Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.
19
+ *
20
+ * Default: 1.
21
+ * Maximum: 20.
22
+ */
23
+ best_of?: number | null;
24
+ /**
25
+ * Echo back the prompt in addition to the completion
26
+ *
27
+ */
28
+ echo?: boolean | null;
29
+ /**
30
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
31
+ *
32
+ * Maximum: 2.
33
+ * Minimum: -2.
34
+ */
35
+ frequency_penalty?: number | null;
36
+ /**
37
+ * Modify the likelihood of specified tokens appearing in the completion.
38
+ *
39
+ * Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](https://platform.openai.com/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
40
+ *
41
+ * As an example, you can pass `{"50256": -100}` to prevent the <|endoftext|> token from being generated.
42
+ *
43
+ */
44
+ logit_bias?: Record<string, number> | null;
45
+ /**
46
+ * Include the log probabilities on the `logprobs` most likely output tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.
47
+ *
48
+ * The maximum value for `logprobs` is 5.
49
+ *
50
+ * Maximum: 5.
51
+ */
52
+ logprobs?: number | null;
53
+ /**
54
+ * The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in the completion.
55
+ *
56
+ * The token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.
57
+ *
58
+ * @example 16
59
+ * Default: 16.
60
+ */
61
+ max_tokens?: number | null;
62
+ /**
63
+ * How many completions to generate for each prompt.
64
+ *
65
+ * **Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.
66
+ *
67
+ * @example 1
68
+ * Default: 1.
69
+ * Maximum: 128.
70
+ * Minimum: 1.
71
+ */
72
+ n?: number | null;
73
+ /**
74
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
75
+ *
76
+ * Maximum: 2.
77
+ * Minimum: -2.
78
+ */
79
+ presence_penalty?: number | null;
80
+ /**
81
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
82
+ *
83
+ * Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.
84
+ *
85
+ * Maximum: 9223372036854776000.
86
+ * Minimum: -9223372036854776000.
87
+ */
88
+ seed?: number | null;
89
+ /**
90
+ * Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
91
+ *
92
+ */
93
+ stop?: string | string[] | null;
94
+ /**
95
+ * Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).
96
+ *
97
+ */
98
+ stream?: boolean | null;
99
+ /**
100
+ * The suffix that comes after a completion of inserted text.
101
+ *
102
+ * This parameter is only supported for `gpt-3.5-turbo-instruct`.
103
+ *
104
+ * @example "test."
105
+ */
106
+ suffix?: string | null;
107
+ /**
108
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
109
+ *
110
+ * We generally recommend altering this or `top_p` but not both.
111
+ *
112
+ * @example 1
113
+ * Default: 1.
114
+ * Maximum: 2.
115
+ */
116
+ temperature?: number | null;
117
+ /**
118
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
119
+ *
120
+ * We generally recommend altering this or `temperature` but not both.
121
+ *
122
+ * @example 1
123
+ * Default: 1.
124
+ * Maximum: 1.
125
+ */
126
+ top_p?: number | null;
127
+ /**
128
+ * A unique identifier representing your end-user, which can help to monitor and detect abuse.
129
+ *
130
+ * @example "user-1234"
131
+ */
132
+ user?: string;
133
+ } & Record<string, any>;
134
+ //# sourceMappingURL=create-completion-request.d.ts.map