File tree Expand file tree Collapse file tree 3 files changed +41
-43
lines changed Expand file tree Collapse file tree 3 files changed +41
-43
lines changed Original file line number Diff line number Diff line change 21
21
% - ApiKey
22
22
% - TimeOut
23
23
% - StreamFun
24
- % More details on the parameters: https://platform.openai .com/docs/api-reference/chat/create
24
+ % More details on the parameters: https://learn.microsoft .com/en-us/azure/ai-services/openai/how-to/chatgpt
25
25
%
26
26
% Example
27
27
%
58
58
deploymentID
59
59
messages
60
60
functions
61
- nvp.ToolChoice = []
62
- nvp.APIVersion = " 2023-05-15 "
63
- nvp.Temperature = 1
64
- nvp.TopProbabilityMass = 1
65
- nvp.NumCompletions = 1
66
- nvp.StopSequences = []
67
- nvp.MaxNumTokens = inf
68
- nvp.PresencePenalty = 0
69
- nvp.FrequencyPenalty = 0
70
- nvp.ResponseFormat = " text "
71
- nvp.Seed = []
72
- nvp.ApiKey = " "
73
- nvp.TimeOut = 10
74
- nvp.StreamFun = []
61
+ nvp.ToolChoice
62
+ nvp.APIVersion
63
+ nvp.Temperature
64
+ nvp.TopProbabilityMass
65
+ nvp.NumCompletions
66
+ nvp.StopSequences
67
+ nvp.MaxNumTokens
68
+ nvp.PresencePenalty
69
+ nvp.FrequencyPenalty
70
+ nvp.ResponseFormat
71
+ nvp.Seed
72
+ nvp.ApiKey
73
+ nvp.TimeOut
74
+ nvp.StreamFun
75
75
end
76
76
77
77
URL = endpoint + " openai/deployments/" + deploymentID + " /chat/completions?api-version=" + nvp .APIVersion ;
Original file line number Diff line number Diff line change 21
21
% - ApiKey
22
22
% - TimeOut
23
23
% - StreamFun
24
- % More details on the parameters: https://platform.openai. com/docs/api-reference/chat/create
24
+ % More details on the parameters: https://github. com/ollama/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values
25
25
%
26
26
% Example
27
27
%
41
41
arguments
42
42
model
43
43
messages
44
- nvp.Temperature = 1
45
- nvp.TopProbabilityMass = 1
46
- nvp.TopProbabilityNum = Inf
47
- nvp.TailFreeSamplingZ = 1
48
- nvp.NumCompletions = 1
49
- nvp.StopSequences = []
50
- nvp.MaxNumTokens = inf
51
- nvp.PresencePenalty = 0
52
- nvp.FrequencyPenalty = 0
53
- nvp.ResponseFormat = " text"
54
- nvp.Seed = []
55
- nvp.TimeOut = 10
56
- nvp.StreamFun = []
44
+ nvp.Temperature
45
+ nvp.TopProbabilityMass
46
+ nvp.TopProbabilityNum
47
+ nvp.TailFreeSamplingZ
48
+ nvp.NumCompletions
49
+ nvp.StopSequences
50
+ nvp.MaxNumTokens
51
+ nvp.ResponseFormat
52
+ nvp.Seed
53
+ nvp.TimeOut
54
+ nvp.StreamFun
57
55
end
58
56
59
57
URL = " http://localhost:11434/api/chat" ; % TODO: model parameter
Original file line number Diff line number Diff line change 57
57
arguments
58
58
messages
59
59
functions
60
- nvp.ToolChoice = []
61
- nvp.ModelName = " gpt-3.5-turbo "
62
- nvp.Temperature = 1
63
- nvp.TopProbabilityMass = 1
64
- nvp.NumCompletions = 1
65
- nvp.StopSequences = []
66
- nvp.MaxNumTokens = inf
67
- nvp.PresencePenalty = 0
68
- nvp.FrequencyPenalty = 0
69
- nvp.ResponseFormat = " text "
70
- nvp.Seed = []
71
- nvp.ApiKey = " "
72
- nvp.TimeOut = 10
73
- nvp.StreamFun = []
60
+ nvp.ToolChoice
61
+ nvp.ModelName
62
+ nvp.Temperature
63
+ nvp.TopProbabilityMass
64
+ nvp.NumCompletions
65
+ nvp.StopSequences
66
+ nvp.MaxNumTokens
67
+ nvp.PresencePenalty
68
+ nvp.FrequencyPenalty
69
+ nvp.ResponseFormat
70
+ nvp.Seed
71
+ nvp.ApiKey
72
+ nvp.TimeOut
73
+ nvp.StreamFun
74
74
end
75
75
76
76
END_POINT = " https://api.openai.com/v1/chat/completions" ;
You can’t perform that action at this time.
0 commit comments