File tree 1 file changed +4
-19
lines changed
1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change 26
26
; ;; Code:
27
27
28
28
(require 'llm )
29
- (require 'llm-openai )
30
- (require 'cl-lib )
29
+ (require 'llm-azure )
31
30
32
- (cl-defstruct (llm-github (:include llm-openai-compatible (url " https://models.inference.ai.azure.com" ))))
33
-
34
- (cl-defmethod llm-nonfree-message-info ((_ llm-github))
35
- " Return GitHub's nonfree terms of service."
36
- " https://docs.github.com/en/site-policy/github-terms/github-terms-of-service" )
31
+ (cl-defstruct (llm-github (:include llm-azure
32
+ (url " https://models.inference.ai.azure.com" ))))
37
33
38
34
(cl-defmethod llm-provider-chat-url ((provider llm-github))
39
- (format " %s /chat/completions"
40
- (llm-github-url provider)))
41
-
42
- (cl-defmethod llm-provider-embedding-url ((provider llm-github) &optional _)
43
- (format " %s /embeddings/"
44
- (llm-github-url provider)))
45
-
46
- (cl-defmethod llm-provider-headers ((provider llm-github))
47
- `((" api-key" . ,(llm-github-key provider))))
48
-
49
- (cl-defmethod llm-capabilities ((_ llm-github))
50
- (list 'streaming 'embedding ))
35
+ (format " %s /chat/completions" (llm-azure-url provider)))
51
36
52
37
(cl-defmethod llm-name ((provider llm-github))
53
38
(format " GitHub Models %s " (llm-github-chat-model provider)))
You can’t perform that action at this time.
0 commit comments