Skip to content

Commit

Permalink
fix: inference extensions small syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro-v committed Dec 8, 2023
1 parent c32ad0a commit 7e3e648
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion extensions/inference-nitro-extension/src/helpers/sse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function requestInference(
messages: recentMessages,
model: model.id,
stream: true,
// TODO: Model parameters spreading
// ...model.parameters,
});
fetch(INFERENCE_URL, {
Expand Down
2 changes: 1 addition & 1 deletion extensions/inference-openai-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class JanInferenceOpenAIExtension implements InferenceExtension {
private static _currentModel: OpenAIModel;

private static _engineSettings: EngineSettings = {
full_url: "https://api.openai.com/v1/chat/completion",
full_url: "https://api.openai.com/v1/chat/completions",
api_key: "sk-<your key here>",
};

Expand Down

0 comments on commit 7e3e648

Please sign in to comment.