mirror of
https://github.com/SilasMarvin/lsp-ai.git
synced 2024-09-11 12:25:48 +03:00
fix gemini_config
This commit is contained in:
parent
c8993bf740
commit
be577c19e0
@ -441,14 +441,21 @@ mod test {
|
||||
"completion": {
|
||||
"model": "model1",
|
||||
"parameters": {
|
||||
"messages": [
|
||||
"contents": [
|
||||
{
|
||||
"role": "system",
|
||||
"content": "Test",
|
||||
"role": "user",
|
||||
"parts":[{
|
||||
"text": "Pretend you're a snowman and stay in character for each response."}]
|
||||
},
|
||||
{
|
||||
"role": "model",
|
||||
"parts":[{
|
||||
"text": "Hello! It's so cold! Isn't that great?"}]
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Test {CONTEXT} - {CODE}"
|
||||
"parts":[{
|
||||
"text": "What's your favorite season of the year?"}]
|
||||
}
|
||||
],
|
||||
"max_new_tokens": 32,
|
||||
|
@ -259,7 +259,6 @@ mod test {
|
||||
dbg!(response.generated_text);
|
||||
Ok(())
|
||||
}
|
||||
// gemini_chat_do_generate TODO
|
||||
#[tokio::test]
|
||||
async fn gemini_chat_do_generate() -> anyhow::Result<()> {
|
||||
let configuration: config::Gemini = serde_json::from_value(json!({
|
||||
|
Loading…
Reference in New Issue
Block a user