SimpleGeminiRunner

esc.ai.SimpleGeminiRunner
class SimpleGeminiRunner(apiUrl: String, apiKey: String) extends LMRunner

A simple LMRunner implementation which call the Gemini API for LLM stuff. You need at least a valid Gemini ApiKey.

Usage: val g = new SimpleGeminiRunner("path", "apiKey") LMRunner.setLMRunner(g)

Attributes

Graph
Supertypes
trait LMRunner
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def aiConfig: AiConfig

Attributes

Definition Classes
override def changeAiConfig(newAiConfig: AiConfig): Unit

Set a new AiConfig to the object. The config itself has no impact of this implementation. It's just used to give the actual config back.

Set a new AiConfig to the object. The config itself has no impact of this implementation. It's just used to give the actual config back.

Attributes

Definition Classes
override def loadModel(path: String): Unit

Not implemented beacause it's not needed for the Gemini API.

Not implemented beacause it's not needed for the Gemini API.

Attributes

Definition Classes
override def prompt(prompt: String, maxTokens: Option[Int] = ...): String

Execute the given text prompt using the Gemini API.

Execute the given text prompt using the Gemini API.

Value parameters

maxTokens

Default is None. But this value is not used for the Gemini API yet.

Attributes

Definition Classes

Concrete fields

val client: HttpClient