|
1 | 1 | classdef(Sealed) azureChat < llms.internal.textGenerator & llms.internal.gptPenalties
|
2 | 2 | %azureChat Chat completion API from Azure.
|
3 | 3 | %
|
4 |
| -% CHAT = azureChat(endpoint, deploymentID) creates an azureChat object with the |
5 |
| -% endpoint and deployment ID path parameters required by Azure to establish the connection. |
| 4 | +% CHAT = azureChat(endpoint, deploymentID) creates an azureChat object with |
| 5 | +% the endpoint and deployment ID path parameters required by Azure to |
| 6 | +% establish the connection. |
6 | 7 | %
|
7 | 8 | % CHAT = azureChat(__,systemPrompt) creates an azureChat object with the
|
8 | 9 | % specified system prompt.
|
9 | 10 | %
|
10 | 11 | % CHAT = azureChat(__,Name=Value) specifies additional options
|
11 | 12 | % using one or more name-value arguments:
|
12 | 13 | %
|
13 |
| -% Tools - A list of tools the model can call. |
14 |
| -% This parameter requires API version 2023-12-01-preview. |
15 |
| -% |
16 |
| -% API Version - A list of API versions to use for this operation. |
17 |
| -% Default value is 2024-02-01. |
18 |
| -% |
19 | 14 | % Temperature - Temperature value for controlling the randomness
|
20 |
| -% of the output. Default value is 1. |
| 15 | +% of the output. Default value is 1; higher values |
| 16 | +% increase the randomness (in some sense, |
| 17 | +% the “creativity”) of outputs, lower values |
| 18 | +% reduce it. Setting Temperature=0 removes |
| 19 | +% randomness from the output altogether. |
21 | 20 | %
|
22 | 21 | % TopProbabilityMass - Top probability mass value for controlling the
|
23 |
| -% diversity of the output. Default value is 1. |
| 22 | +% diversity of the output. Default value is 1; |
| 23 | +% lower values imply that only the more likely |
| 24 | +% words can appear in any particular place. |
| 25 | +% This is also known as top-p sampling. |
24 | 26 | %
|
25 | 27 | % StopSequences - Vector of strings that when encountered, will
|
26 | 28 | % stop the generation of tokens. Default
|
27 | 29 | % value is empty.
|
| 30 | +% Example: ["The end.", "And that's all she wrote."] |
28 | 31 | %
|
29 | 32 | % ResponseFormat - The format of response the model returns.
|
30 | 33 | % "text" (default) | "json"
|
|
33 | 36 | %
|
34 | 37 | % PresencePenalty - Penalty value for using a token in the response
|
35 | 38 | % that has already been used. Default value is 0.
|
| 39 | +% Higher values reduce repetition of words in the output. |
36 | 40 | %
|
37 | 41 | % FrequencyPenalty - Penalty value for using a token that is frequent
|
38 |
| -% in the training data. Default value is 0. |
| 42 | +% in the output. Default value is 0. |
| 43 | +% Higher values reduce repetition of words in the output. |
39 | 44 | %
|
40 |
| -% StreamFun - Function to callback when streaming the |
41 |
| -% result |
| 45 | +% StreamFun - Function to callback when streaming the result |
| 46 | +% |
| 47 | +% TimeOut - Connection Timeout in seconds. Default value is 10. |
| 48 | +% |
| 49 | +% Tools - A list of tools the model can call. |
42 | 50 | %
|
43 |
| -% TimeOut - Connection Timeout in seconds (default: 10 secs) |
| 51 | +% API Version - The API version to use for this model. |
| 52 | +% "2024-02-01" (default) | "2023-05-15" | "2024-05-01-preview" | ... |
| 53 | +% "2024-04-01-preview" | "2024-03-01-preview" |
44 | 54 | %
|
45 | 55 | %
|
46 | 56 | %
|
|
66 | 76 | % FunctionNames - Names of the functions that the model can
|
67 | 77 | % request calls.
|
68 | 78 | %
|
69 |
| -% ResponseFormat - Specifies the response format, text or json |
| 79 | +% ResponseFormat - Specifies the response format, "text" or "json". |
70 | 80 | %
|
71 |
| -% TimeOut - Connection Timeout in seconds (default: 10 secs) |
| 81 | +% TimeOut - Connection Timeout in seconds. |
72 | 82 | %
|
73 | 83 |
|
74 | 84 | % Copyright 2023-2024 The MathWorks, Inc.
|
|
0 commit comments