Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Adding configurable llmservice endpoint which assumes backend stores the system prompt #392

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed comments
  • Loading branch information
JMN09 committed Aug 19, 2024
commit dc804418873e28a3bb9f7bcf56a652c871b2a027
3 changes: 1 addition & 2 deletions src/engine/llmservice.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ export class LlmService implements AiEngine {
): Promise<string | undefined> {

const gitDiff = messages[ messages.length - 1 ]?.content;
const url = `http://${config?.OCO_BACKEND_ENDPOINT}/${config?.OCO_BACKEND_PATH}`; // this key is specific to flowise
const url = `http://${config?.OCO_BACKEND_ENDPOINT}/${config?.OCO_BACKEND_PATH}`;
const payload = {
user_prompt: gitDiff
}
@@ -27,7 +27,6 @@ export class LlmService implements AiEngine {
}
});
const message = response.data;
// have to check the returned message from flowise, it's not documented in their api page

return message;
} catch (err: any) {