Skip to content

Commit

Permalink
feat export createAxiosLanguageModel #94
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed Aug 4, 2023
1 parent e8395ef commit 4458d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function createAzureOpenAILanguageModel(apiKey: string, endPoint: string,
/**
* Common implementation of language model encapsulation of an OpenAI REST API endpoint.
*/
function createAxiosLanguageModel(url: string, config: object, defaultParams: Record<string, string>) {
export function createAxiosLanguageModel(url: string, config: object, defaultParams: Record<string, string>) {
const client = axios.create(config);
const model: TypeChatLanguageModel = {
complete
Expand Down

0 comments on commit 4458d65

Please sign in to comment.