File tree 2 files changed +0
-23
lines changed
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -66,23 +66,6 @@ export abstract class BaseLLM implements ILLM {
66
66
return [ "ollama" , "anthropic" ] . includes ( this . providerName ) ;
67
67
}
68
68
69
- supportsCompletions ( ) : boolean {
70
- if ( this . providerName === "openai" ) {
71
- if (
72
- this . apiBase ?. includes ( "api.groq.com" ) ||
73
- this . apiBase ?. includes ( ":1337" )
74
- ) {
75
- // Jan + Groq don't support completions : (
76
- return false ;
77
- }
78
- }
79
- return true ;
80
- }
81
-
82
- supportsPrefill ( ) : boolean {
83
- return [ "ollama" , "anthropic" ] . includes ( this . providerName ) ;
84
- }
85
-
86
69
uniqueId : string ;
87
70
model : string ;
88
71
Original file line number Diff line number Diff line change @@ -45,12 +45,6 @@ class OpenAI extends BaseLLM {
45
45
this . useLegacyCompletionsEndpoint = options . useLegacyCompletionsEndpoint ;
46
46
}
47
47
48
- constructor ( options : LLMOptions ) {
49
- super ( options ) ;
50
- this . useLegacyCompletionsEndpoint =
51
- options . useLegacyCompletionsEndpoint ?? false ;
52
- }
53
-
54
48
static providerName : ModelProvider = "openai" ;
55
49
static defaultOptions : Partial < LLMOptions > = {
56
50
apiBase : "https://api.openai.com/v1/" ,
You can’t perform that action at this time.
0 commit comments