File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/langbase/src/langbase Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export interface RunOptionsStreamT extends RunOptionsBase {
2727export interface LlmOptionsBase {
2828 messages : PromptMessage [ ] ;
2929 model : string ;
30- llmKey : string ;
30+ apiKey : string ;
3131 top_p ?: number ;
3232 max_tokens ?: number ;
3333 temperature ?: number ;
@@ -1092,7 +1092,7 @@ export class Langbase {
10921092 private async runLlm (
10931093 options : LlmOptions | LlmOptionsStream ,
10941094 ) : Promise < RunResponse | RunResponseStream > {
1095- if ( ! options . llmKey ) {
1095+ if ( ! options . apiKey ) {
10961096 throw new Error ( 'LLM API key is required to run this LLM.' ) ;
10971097 }
10981098
@@ -1105,7 +1105,7 @@ export class Langbase {
11051105 endpoint : '/v1/llm/run' ,
11061106 body : options ,
11071107 headers : {
1108- ...( options . llmKey && { 'LB-LLM-Key' : options . llmKey } ) ,
1108+ ...( options . apiKey && { 'LB-LLM-Key' : options . apiKey } ) ,
11091109 } ,
11101110 } ) ;
11111111 }
You can’t perform that action at this time.
0 commit comments