mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-05 04:45:13 +02:00
Implement system in text completion API (#137)
* Add system prompt to LLM invocation * Added system parameter to LLMs * Added to Bedrock and VertexAI
This commit is contained in:
parent
53c958aaff
commit
65cda7b276
13 changed files with 24 additions and 13 deletions
|
|
@ -111,7 +111,14 @@ class Processor(ConsumerProducer):
|
|||
|
||||
print(f"Handling prompt {id}...", flush=True)
|
||||
|
||||
prompt = v.prompt
|
||||
# FIXME: There's a system prompt above. Maybe if system changes,
|
||||
# then reset self.llm? It shouldn't do, because system prompt
|
||||
# is set system wide?
|
||||
|
||||
# Or... could keep different LLM structures for different system
|
||||
# prompts?
|
||||
|
||||
prompt = v.system + "\n\n" + v.prompt
|
||||
|
||||
try:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue