mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
Fix formatting issues in community environments - Applied black, isort, trailing whitespace, and end-of-file fixes - Remaining flake8 issues (unused imports, line length) noted for future cleanup
This commit is contained in:
parent
e85a170c34
commit
7f2e1a4f90
34 changed files with 1560 additions and 821 deletions
|
|
@ -143,7 +143,7 @@ async function performChatCompletion(
|
|||
model: model, // Model identifier passed as parameter
|
||||
messages: messages,
|
||||
// Additional parameters can be added here if required (e.g., max_tokens, temperature, etc.)
|
||||
// See the Sonar API documentation for more details:
|
||||
// See the Sonar API documentation for more details:
|
||||
// https://docs.perplexity.ai/api-reference/chat-completions
|
||||
};
|
||||
|
||||
|
|
@ -182,7 +182,7 @@ async function performChatCompletion(
|
|||
throw new Error(`Failed to parse JSON response from Perplexity API: ${jsonError}`);
|
||||
}
|
||||
|
||||
// Directly retrieve the main message content from the response
|
||||
// Directly retrieve the main message content from the response
|
||||
let messageContent = data.choices[0].message.content;
|
||||
|
||||
// If citations are provided, append them to the message content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue